• 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: A question on shell scripting in AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: A question on shell scripting in AppleScript


  • Subject: RE: A question on shell scripting in AppleScript
  • From: Dennis Cox <email@hidden>
  • Date: Tue, 8 Feb 2005 10:19:08 -0600

Title: RE: A question on shell scripting in AppleScript

    ----------
    From:   Dennis Cox
    Sent:   Tuesday, February 8, 2005 9:36 AM
    To:     email@hidden
    Subject:        RE: A question on  shell scripting in AppleScript

    From:   Francois Houle
    Sent:   Tuesday, February 8, 2005 9:21 AM
    To:     email@hidden
    Subject:        A question on  shell scripting in AppleScript

    Hi,
     
    I'm just running into a little issue here.. I have a shell script where the path to the file contains a Space.. Int he terminal I simply wou go like this: File\ Name

            However, when the command is in an AppleScript, as bellow then I get that there is an unknown identifier, wether I use "quote" signs or |vertical| signs

            eg:  do shell script "rm /Users/myaccount/Documents/My\ Folder"
     
    How can I go around this ?

            Frank


    set s to "/Users/myaccount/Documents/My Folder"
    do shell script "rm " & quoted form of s


And I was moving so quickly, I forgot to add this (essential for anyone using "do shell script"):
<http://developer.apple.com/technotes/tn2002/tn2065.html>
Tech Note TN2065: do shell script in AppleScript

Sorry for the omission.

Dennis

 _______________________________________________
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: what is wrong with this ?
  • Next by Date: Get this to work with Entourage too
  • Previous by thread: RE: A question on shell scripting in AppleScript
  • Next by thread: Get this to work with Entourage too
  • Index(es):
    • Date
    • Thread