Re: Saving handler-defined scripts without source code
Re: Saving handler-defined scripts without source code
- Subject: Re: Saving handler-defined scripts without source code
- From: Andy Wylie <email@hidden>
- Date: Sat, 11 Jan 2003 15:41:34 +1300
on Fri, 10 Jan 2003 17:23:27 -0500 Arthur J. Knapp wrote:
>
>
The great Richard 23, in a rare on-list appearance last year, showed us
>
how to do this very thing:
>
>
<http://lists.apple.com/mhonarc/applescript-users/msg31751.html>
>
>
>> script
>
>> property parent : AppleScript
>
>> script
>
>> property icon : the clipboard
>
>> return my icon
>
>> end script
>
>> end script
>
>> run script result
>
>>
>
>> store script result in file "Private:icon data"
>
>>
it was nice to see r23 is alive, I was distracted from this gem by errors in
another script he posted at the time and forgot to investigate this thanks!
generic quickie...
script _store
property parent : AppleScript
on _itsit(x)
script
property data : x
my data
end script
end _itsit
end script
_store's _itsit({"abc", {123}, {abc:123}, {application "Finder"'s
selection}})
store script result in file ((path to "desk") & "abc r23" as string)
replacing yes
run script alias ((path to "desk") & "abc r23" as string)
--> {"abc", {123}, {abc:123}, {{file "abc r23"}}}
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.