Economy-x-Talk - Sample Scripts
Create Alias to Application
Create an aliuas to an application on Mac OS X.
--CREATE AN ALIAS FOR THE APPLICATION ON THE DESKTOP
repeat for each line thisLine in tFiles
put specialFolderPath("desktop") into tAliasLoc
put "/" & thisLine after tAliasLoc
--IF THE ALIAS ALREADY EXISTS THEN DELETE IT FIRST
--AS THE OLD ONE WILL BREAK THE INSTALLER
if there is a folder tAliasLoc then
revDeleteFolder tAliasLoc
end if
put specialFolderPath("desktop") into tAliasLoc
put "/" & quote & thisLine & quote after tAliasLoc
put tDestLoc into tSourceOfAlias
put "/" & quote & thisLine & ".app" & quote after tSourceOfAlias
put "ln -s" && tSourceOfAlias && tAliasLoc into tCmd
put shell (tCmd)
end repeat
Keep this extensive resource of tutorials and samples on-line! Support RunRev.info!
| Yes, this script is useful. I make a donation and choose freely how much I want to donate on-line (PayPal). Click here if you want to make a donation in dollars. | This script has not (completely) solved my problem and I want Economy-x-Talk to take care of it. Let me contact you. |
Copyright©2002-2008 by Mark Schonewille, Nijmegen, the Netherlands. This web site is in no way affiliated with Runtime Revolution Ltd., but we do recommend the Revolution development platform.