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

Re: Do shell script


  • Subject: Re: Do shell script
  • From: Emmanuel <email@hidden>
  • Date: Wed, 25 Feb 2004 18:09:35 +0100

At 4:27 PM +0100 25/02/04, Gianfranco wrote:
>Maybe this is a stupid question but if I use the Do shell script command with spaces in the string the command didn't work

Always pass to shell scripts the "quoted form" of your strings.

>do shell script "open /Users/TripleZ/Desktop/ProgCSS/CSSEdit.app"

should be:

---------------- untested
set f to "/Users/TripleZ/Desktop/Prog CSS/CSSEdit.app"
do shell script ("open " & quoted form of f)
----------------

AppleScript's dictionary defines "quoted form" as a property of the "text" class. :-)

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Do shell script (From: Gianfranco <email@hidden>)

  • Prev by Date: Re: How to make thumbnail
  • Next by Date: Re: Do shell script
  • Previous by thread: Re: Do shell script
  • Next by thread: Re: Do shell script
  • Index(es):
    • Date
    • Thread