• 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: Osacript (solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Osacript (solved)


  • Subject: Re: Osacript (solved)
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 21 Mar 2010 14:33:18 -0400

You need to put quotation marks around anything containing spaces.
>From AS, use "quoted form of" on the value before passing it to " do
shell script".    For literal values inside a script, use single
quotes.  For values containing variable interpolation, use double
quotes.  As a general rule of shell-scripting, any time you have $blah
it should be "$blah", or else things will break mysteriously whenever
the variable has a value with spaces...

On Sunday, March 21, 2010, ba95 <email@hidden> wrote:
> My shell script was OK in the Terminal but SuperDuper failed to read it as a text file.... because it was a RTF file.
> Converted to plain text, it worked fine.
>
> Newbie elementary mistake, sorry.
>
> Little complementary shell scripting question:
>
> I have written "La?Cie?640Go", with "?" (wild card) replacing spaces.
> What is the good/best way to write volumes names  spaces ?
>
>
>
>  _______________________________________________
> 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
>

--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >RE: Osacript (solved) (From: ba95 <email@hidden>)

  • Prev by Date: RE: Osacript (solved)
  • Next by Date: Re: AppleScript, Pages and Text boxes (part 2)
  • Previous by thread: RE: Osacript (solved)
  • Next by thread: Re: A bit of philosophy about Database events
  • Index(es):
    • Date
    • Thread