Re: How to do some AppleScript inside a Perl program to label duplicates
Re: How to do some AppleScript inside a Perl program to label duplicates
- Subject: Re: How to do some AppleScript inside a Perl program to label duplicates
- From: Matt Neuburg <email@hidden>
- Date: Mon, 19 Sep 2005 07:48:16 -0700
On Sat, 17 Sep 2005 00:15:59 -0400, "Mark J. Reed" <email@hidden>
said:
>A minor suggestion to avoid giving migraines to Perl programmers:
>instead of embedding a shell command with a shell heredoc in
>backticks, just run osascript and print the script at it using a perl
>here-doc, like so:
>
>open(OSASCRIPT, "|osascript") or die "$0: couldn't run osascript: $!\n";
>print OSASCSRIPT <<ENDSCRIPT;
>tell application "Finder"
> do something
>end tell
>ENDSCRIPT
Interesting. My book discusses use of a here-doc but then runs osascript
thru backticks, not with this "print" device. Should I be documenting this?
Why is it better? m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
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