• 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: Creating an environment variable from AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating an environment variable from AppleScript


  • Subject: Re: Creating an environment variable from AppleScript
  • From: "hackmiester (Hunter Fuller)" <email@hidden>
  • Date: Mon, 9 Oct 2006 17:48:08 -0500


On 9 October 2006, at 11:09, Mark J. Reed wrote:

On 10/9/06, Philip Aker <email@hidden> wrote:
If you want easy control, use Tcl to coordinate:

I fail to see what's so easy about using TCL to run an AppleScript so that you can take the output and feed it to Perl; it seems like wasted overhead. I'm particularly not fond of the part where you take the output of the AS and store it in a TCL varaible and pass it on the command line to Perl, since that introduces complications such as a size limit. In general, if you've got essentially arbitrary string data, you're better off using I/O (pipes if you can, files if you must) than command line arguments.

I'f you're doing part of the job with perl and part with applescript,
just run whichever one does the first part of the job and let it start
up the other as needed.  I see no need to introduce yet a third
interpreter to the mix.  (Well, I guess that's unavoidable in the case
of calling Perl from AppleScript, since the only way I know of to do
that inserts the shell in between them...)  Although, if a pipeline
model is appropriate, you could use the shell to set it up:

#!/bin/sh
osascript -f myAppleScript.as | perl myPerlScript.pl

That won't work if the perl needs to interact with the user via
stdin/stdout, etc., but under the right conditions it could be the
simplest answer.

Can AS READ a pipe?

-- Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
@hackmiester.com


This email sent to email@hidden


-- hackmiester (Hunter Fuller)

<svinx> yknow when you go to a party, and everyones hooked up except one guy and one girl
<svinx> and so they look at each other like.. do we have to?
<svinx> intel & nvidia must be lookin at each other like that right now



Phone Voice: +1 251 589 6348 Fax: Call the voice number and ask.

Email
General chat: email@hidden
Large attachments: email@hidden
SPS-related stuff: email@hidden

IM
AIM: hackmiester1337
Skype: hackmiester31337
YIM: hackm1ester
Gtalk: hackmiester
MSN: email@hidden
Xfire: hackmiester


_______________________________________________ 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: Creating an environment variable from AppleScript
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Creating an environment variable from AppleScript (From: Steve Hayman <email@hidden>)
 >RE: Creating an environment variable from AppleScript (From: "Kumar Shailove" <email@hidden>)
 >Re: Creating an environment variable from AppleScript (From: "Mark J. Reed" <email@hidden>)
 >Re: Creating an environment variable from AppleScript (From: Philip Aker <email@hidden>)
 >Re: Creating an environment variable from AppleScript (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Renaming a copied file with Finder
  • Next by Date: Re: Creating an environment variable from AppleScript
  • Previous by thread: Re: Creating an environment variable from AppleScript
  • Next by thread: Re: Creating an environment variable from AppleScript
  • Index(es):
    • Date
    • Thread