• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Launching a shell script nested inside a bundle (Applescript-users Digest, Vol 2, Issue 746)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: RE: Who has that property?
  • Next by Date: Re: New FireFox 1.5 browser -- applescript implementation
  • Previous by thread: Re: Unknown reason for applciation crash
  • Next by thread: Photoshop Channels help
  • Index(es):
    • Date
    • Thread