Relative to current user and relative to current script are two things. The AppleScript application will be located /user (different for each Mac)/Desktop/Packages/Software/application name/script once pulled down also. ![]() The dmg will be located on /user (different for each Mac)/Desktop/Packages/Software/application name/installer once pulled down onto each Mac. +do shell script "hdiutil attach './installer/Adobe Photoshop CS5 Extended.dmg'"+ This script we are trying to mount the dmg from the relative path as this is how it will be when pulled down from the server. +do shell script "hdiutil attach '/Users/TS/Desktop/Packages/Software/Adobe Photoshop CS5 Extended/installer/Adobe Photoshop CS5 Extended.dmg'"+ +if not (exists "Adobe Photoshop CS5 Extended") then+ ![]() This script we know works and mounts the dmg as it should but unfortunately cannot be used as we intend to run this script on numerous different computers all with different usernames. We are just putting the finishing touches to a script but have stumbled across something that should be easy to fix but we can't see the obvious way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |