• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Read-Only Flag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Read-Only Flag (From: Emmanuel <email@hidden>)

  • Prev by Date: Run applet from browser
  • Next by Date: Re: Two things I noticed in a simple Finder script
  • Previous by thread: Re: Read-Only Flag
  • Next by thread: Run applet from browser
  • Index(es):
    • Date
    • Thread