Re: Osacript (solved)
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