• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adobe Illustrator relink script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adobe Illustrator relink script


  • Subject: Adobe Illustrator relink script
  • From: Jake Rowlands <email@hidden>
  • Date: Tue, 19 Apr 2016 14:12:30 -0400

Many thank you to Ed Stockly for helping me out with my first phase of an Adobe Illustrator relink script. With his help, the script is able to change the link location between three different libraries. There is a high resolution connected server library, a low resolution connected server mirror library of the high resolution (with minor change in folder hierarchy) and lastly a connected USB version of the low resolution library. 

The USB is synced using box.com account and carbon copy cloner. However, Box does not fully support syncing to an external drive. I need to alter the script to allow relinking from the active user's home folder, despite user name. The script will currently link from high resolution or low resolution to the home folder Box Sync, but will not link back out of the home folder to high resolution nor low resolution. 

Below is the script so far:

set BoxSync to (path to home folder as text)

set LoResLink to "CG Master_LR"

set HiResLink to "CG Master_HR"

set NewExt1 to ".tif"

set NewExt1Small to "-sm.tif"

set ErrorList to {}

set LinkInspect to {}

tell application "Adobe Illustrator"

activate

set user interaction level to interact with all

display dialog "Please chose link mode" buttons {"HiRes", "LoRes", "Box Sync"} default button 2

if the button returned of the result is "HiRes" then

set ErrorList to ErrorList & my LinkSwitch(document 1, LoResLink, HiResLink, 3, NewExt1)

set ErrorList to ErrorList & my LinkSwitch(document 1, BoxSync, HiResLink, 5, NewExt1)

else if button returned of the result is "LoRes" then

set ErrorList to ErrorList & my LinkSwitch(document 1, HiResLink, LoResLink & ":Assets", 2, NewExt1Small)

set ErrorList to ErrorList & my LinkSwitch(document 1, BoxSync, LoResLink & ":Assets", 5, NewExt1Small)

else

set ErrorList to ErrorList & my LinkSwitch(document 1, LoResLink, BoxSync & ":Box Sync:Assets", 3, NewExt1Small)

set ErrorList to ErrorList & my LinkSwitch(document 1, HiResLink, BoxSync & ":Box Sync:Assets", 2, NewExt1Small)

end if



Thank you,
Jake Rowlands
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Adobe Illustrator relink script
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Error -10000 for one user
  • Next by Date: Re: Adobe Illustrator relink script
  • Previous by thread: Re: Lost live view of page build process since InDesign CC2015
  • Next by thread: Re: Adobe Illustrator relink script
  • Index(es):
    • Date
    • Thread