Re: Read-Only Flag
Re: Read-Only Flag
- Subject: Re: Read-Only Flag
- From: Emmanuel <email@hidden>
- Date: Sat, 2 Jun 2001 11:08:07 +0200
At 0:42 +0200 1/06/01, Rob Jorgensen wrote:
>
That's all well and good if I have a version of each to compare, but
>
this usually isn't the case. I just want to create a droplet that
>
indicates which type of script it is, without the need to open it
>
with an editor.
You can have Smile do that. If the user has Smile installed (and enough RAM
to have it run) the droplet could launch it in the background and have it
try to coerce the script into text:
-------------------- tested
try
set s to (load resource 128 type "scpt" from f) as text
-- readable script
on error number -1700
-- run-only (most probably)
end
-------------------- tested
Watch the parenthesis.
Emmanuel