• 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: How to do some AppleScript inside a Perl program to label duplicates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to do some AppleScript inside a Perl program to label duplicates
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Check to see if a computer is running....
  • Next by Date: Re: Properties within Properties - Scripting Address book
  • Previous by thread: Re: [SUL] Remove very last CR
  • Next by thread: Re: How to do some AppleScript inside a Perl program to label duplicates
  • Index(es):
    • Date
    • Thread