Re: Read-Only Flag
Re: Read-Only Flag
- Subject: Re: Read-Only Flag
- From: Rob Jorgensen <email@hidden>
- Date: Sat, 2 Jun 2001 23:20:39 -0400
On 6/2/01, Emmanuel commented:
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.
Thanks Emmanuel. Smile isn't currently installed, but I believe that
I've finally found something unique within that particular resource
which will act as a flag (until Apple changes something in that
particular resource anyway). The droplet is working as desired in
preliminary tests.
Later,
Rob Jorgensen
Ohio, USA