Re: Finding and shelling out to a sh script in the same directory as the AppleScript
Re: Finding and shelling out to a sh script in the same directory as the AppleScript
- Subject: Re: Finding and shelling out to a sh script in the same directory as the AppleScript
- From: Skeeve <email@hidden>
- Date: Thu, 05 Feb 2009 17:44:22 +0100
Michelle Steiner schrieb:
I do not see where it gets the container of the script file.
Sure. Because your script isn't an application, but mine was. To fix
this, replace "../" with "/../". This should work in both cases.
set rubyScript to "linktunes.rb"
set scriptPath to (POSIX path of (path to me)) & "/../" & rubyScript
set scriptPath to (POSIX file scriptPath) as string
set scriptPath to POSIX path of scriptPath
_______________________________________________
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