0

I am able to make an alias of an executable on the desktop using this code -How to change icon of alias created using applescript?

I want to copy/duplicate the alias to a folder inside the Applications directory , so I tried as follows duplicate newAlias to folder "myFolder of folder Applications of startup disk" but it times out.

I'm a newbie to Applescript , so I'must be making some simple mistake.

What is the right way to do this ?

Note: I want to retain the same name of the alias at the copied destination

Abbas
  • 3,144
  • 2
  • 25
  • 45
  • Are you really using the system Applications folder, and do you have permissions to write to the destination? Is there a particular reason for the alias file in so many locations? – red_menace Feb 28 '19 at 16:04
  • Ok I was able to do it this way duplicate newAlias to folder "Macintosh HD:Applications:myFolder" but will this be compatible for older versions of Mac like EI Capitan ? I'm using High Sierra right now – Abbas Feb 28 '19 at 16:08
  • I don't have an El Capitan machine to test, but it should work as long as you have write permissions for the folder. – red_menace Feb 28 '19 at 16:17

1 Answers1

0

this worked for me on High Sierra and El Capitan as well

duplicate newAlias to folder "MyFolder" of folder "Applications" of startup disk
Abbas
  • 3,144
  • 2
  • 25
  • 45