• 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: Shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Shell script
      • From: Emmanuel <email@hidden>
References: 
 >(no subject) (From: David Marshall <email@hidden>)

  • Prev by Date: Re: Shell script
  • Next by Date: Re: Mount Current Users Folder as Disk
  • Previous by thread: (no subject)
  • Next by thread: Re: Shell script
  • Index(es):
    • Date
    • Thread