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: "Gary (Lists)" <email@hidden>
- Date: Fri, 16 Sep 2005 23:23:08 -0400
"pete boardman" wrote:
> On 16 Sep 2005, at 16:52, Adam Wuellner wrote:
>> for (@{$pair{$i}}) {
>> print $$_,"\n";
>> system("osascript -e 'tell application \"Finder\" to set the label
>> index of (POSIX file \"$$_\") to 6'");
>> }
> Adam - this work brilliantly for me! I was still pondering how to
> install some Perl modules, but this saves me the bother. No stack
> overflow yet...
A very nice application of...
> On 16 Sep 2005, at 17:02, Doug McNutt wrote:
>> The CLI tool osascript allows ApleScript syntax to be compiled and
>> executed from a command line.
[...]
>> osascript << ENDSCRIPT
>> tell application "Finder"
>> do something
>> end tell
>> ENDSCRIPT
>>
>> Efficient it is not. But it is simple.
>
> Suits me! Fortunately, I can go and make a cup of tea while this runs...
...this principle.
Very cool stuff. Suits me as well.
I have not needed (and therefore haven't read) osascript's man. That's now
on my to-do list.
For my tasks, which are often low-volume but repetitive, this kind of
so(u)rcery is perfect.
Thanks Doug, and Adam, for the excellent follow-up.
--
Gary
_______________________________________________
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