Re: Launching a shell script nested inside a bundle (Applescript-users Digest, Vol 2, Issue 746)
Re: Launching a shell script nested inside a bundle (Applescript-users Digest, Vol 2, Issue 746)
- Subject: Re: Launching a shell script nested inside a bundle (Applescript-users Digest, Vol 2, Issue 746)
- From: Jonathan Levi MD <email@hidden>
- Date: Tue, 8 Nov 2005 22:03:49 -0500
At Mon, 07 Nov 2005 23:55:19 +0100, Jay Louvion
<email@hidden> wrote:
Is it possible ? What are the possible permission issues ? I have tried
giving the contents the right X¾ permissions (before running the app bundle
on my machine), but to no avail. Is this some security issue ?
I've done it before (using Panther, not Tiger).
The following example just worked:
--script application bundle DoNestedShellScript
set myPathU to POSIX path of (path to me)
do shell script (quoted form of (myPathU & ¬
"Contents/Resources/Scripts/sampleShellScript.sh"))
Shell script sampleShellScript.sh, put into
DoNestedShellScript.app/Contents/Resources/Scripts:
#!/bin/sh
open ~/Desktop
Permissions set from Terminal after cd'ing to
DoNestedShellScript.app/Contents/Resources/Scripts:
chmod 755 sampleShellScript.sh
HTH,
Jonathan
_______________________________________________
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