• 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: Johnny AppleScript <email@hidden>
  • Date: Fri, 08 Oct 2004 05:46:11 -0600

On 04/10/08 4:13 AM, "Johnny AppleScript" <email@hidden> wrote:

> Now, I want to know if there¹s a way to pass the string (hello world) directly
> to a running applet, preferably without the use of osascript.

I've succumbed to a workaround for the moment:

    [from JS]
    mPath="~/tmp/myTempFile.tmp"
    message="echo hello world >> "+ mPath
    system(message)

    [from AS]
    set mPath to "~/tmp/myTempFile.tmp"
    set message to do shell script "more " & mPath & " ; rm " & mPath

Does anyone see any problems with this? I would like to write to the User's
'Temporary Items' folder, but I have terrible problems with getting echo to
write to a user path if the user path has spaces in names; yes I've tried
quoting, escaping, etc; it just doesn't like to do it.

Will this fail if the user does not have admin privileges?

TIA -- JA

 _______________________________________________
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: Gnarlodious <email@hidden>
References: 
 >Passing calls to an AS app via shell? (From: Johnny AppleScript <email@hidden>)

  • Prev by Date: Passing calls to an AS app via shell?
  • Next by Date: Re: Passing calls to an AS app via shell?
  • Previous by thread: Passing calls to an AS app via shell?
  • Next by thread: Re: Passing calls to an AS app via shell?
  • Index(es):
    • Date
    • Thread