Re: variables vrs properties
Re: variables vrs properties
- Subject: Re: variables vrs properties
- From: KOENIG Yvan <email@hidden>
- Date: Thu, 6 Jan 2011 08:57:27 +0100
Le 5 janv. 2011 à 23:48, Shane Stanley a écrit :
>
> On 6/1/11 9:20 AM, "KOENIG Yvan" <email@hidden> wrote:
>
>> "The variable «do_the_duty» isn't defined"
>
> You need to change the order, so that the script definition comes first. And
> it should use "my" in the display dialog line:
>
> property list_of_items : {}
>
> script do_the_duty
> display dialog (my list_of_items as text)
> end script
>
> on run
> set p2d to "" & (path to desktop)
> set my list_of_items to {p2d & "Courrier 96.cwk" as alias, p2d &
> "Converted document.doc" as alias}
> run script do_the_duty
> end run
>
> on open sel
> copy sel to my list_of_items
> run script do_the_duty
> end open
Thanks
It behaves flawlessly.
Now, I will be able to fasten all my droplets.
Yvan KOENIG (VALLAURIS, France) jeudi 6 janvier 2011 08:56:38
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden