• 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: Passing calls to an AS app via shell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing calls to an AS app via shell?


  • Subject: Re: Passing calls to an AS app via shell?
  • From: Martin Orpen <email@hidden>
  • Date: Fri, 08 Oct 2004 17:52:27 +0100

on 8/10/04 5:28 pm, Steven D.Majewski at email@hidden wrote:

>
> On Oct 8, 2004, at 10:53 AM, Martin Orpen wrote:
>
>> on 8/10/04 3:48 pm, Martin Orpen at email@hidden wrote:
>>>
>>> Try adding a backslash:
>>>
>>>     do shell script "echo hello >> ~/Temporary\ Items/filename.txt"
>>>
>>> Escaping the space should work.
>>
>> Whoops, I really meant to type:
>>
>>     do shell script "echo hello >> ~/Temporary\\ Items/filename.txt"
>
>
> Or use  'quoted form of "Temporary Items" '

I didn't mention that because Johnny A. said that he'd also been unable to
get the script to work with "quoted forms" of the path.

> There could also be a problem with interpreting the "~"
> There are differences in the environment whether running from
> Script Editor or osascript ( and probably with other methods also).

I don't think it's an environment problem.

The ~ is rendered meaningless if it's quoted or escaped whether you're using
bash, tcsh or whatever shell.

You can do:

    $ cd "/"

But, as you noted in your script, you can't do:

    $ cd "~"

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com


 _______________________________________________
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

  • Follow-Ups:
    • Re: Passing calls to an AS app via shell?
      • From: Martin Orpen <email@hidden>
References: 
 >Re: Passing calls to an AS app via shell? (From: "Steven D.Majewski" <email@hidden>)

  • Prev by Date: Re: [~ot] those pesky invisible folders ...
  • Next by Date: Script Debugger 3 and AppleScript Studio
  • Previous by thread: Re: Passing calls to an AS app via shell?
  • Next by thread: Re: Passing calls to an AS app via shell?
  • Index(es):
    • Date
    • Thread