• 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
Apple Script to run a shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apple Script to run a shell script


  • Subject: Apple Script to run a shell script
  • From: Curt Schultz <email@hidden>
  • Date: Mon, 24 May 2010 14:42:51 -0700


Hello List,
I am trying to create an Apple Script that will in turn run a shell script. I am not a scripting person at all and don't use AppleScript very much. This is what I have:

do shell script "/bin/mkdir /Volumes/DROP\ FOLDER; /sbin/mount -t afp afp://USER:email@hidden/DROP\ FOLDER /Volumes/DROP\ FOLDER"

Unfortunately it wont compile. When I try to compile it, I get a message:  "Expected “"” but found unknown token."
The space between the "\" and the word "FOLDER" is then highlighted. When I run the line from the terminal without the path, everything works fine

(This works in the terminal)
do shell script "mkdir /Volumes/DROP\ FOLDER; /sbin/mount -t afp afp://USERNAME:email@hidden/DROP\ FOLDER /Volumes/DROP\ FOLDER"

Am I missing something? any assistance is appreciated.


Thanks 
Curt


 _______________________________________________
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

  • Follow-Ups:
    • Re: Apple Script to run a shell script
      • From: "Mark J. Reed" <email@hidden>
    • Re: Apple Script to run a shell script
      • From: Joel Esler <email@hidden>
  • Prev by Date: Re: Coping with Date format variations
  • Next by Date: Re: Apple Script to run a shell script
  • Previous by thread: Re: [ann] Learn AppleScript, 3rd edition now available
  • Next by thread: Re: Apple Script to run a shell script
  • Index(es):
    • Date
    • Thread