# Zotero new link style

**URL:** https://discourse.hookproductivity.com/t/zotero-new-link-style/6800
**Category:** Showcases and Use Cases
**Created:** [May 17, 2023, 3:37pm UTC](https://discourse.hookproductivity.com/t/zotero-new-link-style/6800 "2023-05-17T15:37:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![grothen](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/g/cc9497/32.png) [@grothen](https://discourse.hookproductivity.com/u/grothen)
#### Post date: [May 17, 2023, 3:37pm UTC](https://discourse.hookproductivity.com/t/zotero-new-link-style/6800/1 "2023-05-17T15:37:30Z")

</div>

The Zotero has changed the link style for items for several months. The old style works on Mac but fail in the iOS devices. I modified the Zotero script for temporary usage.

```auto
set firstChar to character 1 of theLink
set secondChar to character 2 of theLink
set firstDigit to (firstChar as integer)
set myLink to text 3 thru -1 of theLink

if secondChar is not "_" then
	set theLink to "[" & theName & "](zotero://select/library/items/" & theLink & ")"
else if firstDigit is 1
	set theLink to "[" & theName & "](zotero://select/library/items/" & myLink & ")"
else if firstDigit is 2
	set theLink to "[" & theName & "](zotero://select/groups/[group1id]/items/" & myLink & ")"
else if firstDigit is 3
	set theLink to "[" & theName & "](zotero://select/groups/[group2id]/items/" & myLink & ")"
else if firstDigit is 4
	set theLink to "[" & theName & "](zotero://select/groups/[group3id]/items/" & myLink & ")"
end if

```

The [group1id] is the number for each groups.

---

<div class="post-metadata">

### Author: ![bchend](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/b/dbc845/32.png) [@bchend](https://discourse.hookproductivity.com/u/bchend)
#### Post date: [May 17, 2023, 7:02pm UTC](https://discourse.hookproductivity.com/t/zotero-new-link-style/6800/2 "2023-05-17T19:02:55Z")

</div>

Thank you very much for the info and the script!

We will take a look.
