Re: Shell script
Re: Shell script
- Subject: Re: Shell script
- From: Matthew Smith <email@hidden>
- Date: Mon, 11 Apr 2005 13:10:07 +1000
on 11/04/2005 12:50, David Marshall at email@hidden wrote:
> On Sat, 9 Apr 2005 20:21:51 -0400, Neil Faiman wrote:
>
>> The "path to me" command in an AppleScript Studio application will
>> return the path to the application bundle itself, so you could probably
>> use
>>
>> return (do shell script (path to me) &
>> "/Contents/Resources/shellscript -un " & var) as string
>
> Don't you need to hand a POSIX path to the do shell script command,
> though?
>
> set objectFolder to (path to me) as string
> return (do shell script ((POSIX path of (objectFolder)) & ¬
> "/Contents/Resources/shellscript -un " & var))
Why are you casting the path to string?
Wouldn't this be better:
set objectFolder to (path to me)
return (do shell script ((POSIX path of (objectFolder)) & ¬
"/Contents/Resources/shellscript -un " & var))
--
Matthew Smith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >(no subject) (From: David Marshall <email@hidden>) |