Re: Script Editor in Tiger: where's the Find gone?
Re: Script Editor in Tiger: where's the Find gone?
- Subject: Re: Script Editor in Tiger: where's the Find gone?
- From: Daniel Jalkut <email@hidden>
- Date: Sun, 8 May 2005 18:51:51 -0700
Hi - I didn't actually write that comment below, but I am interested
in your points.
I hadn't thought about the fact that decompiling might require an app
to launch. Definitely a show-stopper.
In my trivial first-attempt at this, I just tried implementing an
import plugin that does a OSALoadFile and then tries to get the
source. Unfortunately, simply attempting to load the file seems to
fail for me with -1750 error. So there are clearly obstacles even
beyond the decompiling issue you raised.
I guess there were probably good reasons (or at least annoying
obstacles) that prevented the Apple folks from including this
functionality.
D
On May 8, 2005, at 12:10 PM, has wrote:
Daniel Jalkut wrote:
On a related subject, can I use SpotLight to search inside
scripts? Or is it going to need some kind of addition (importer
thingy) before we can search scripts?
Yep, you would need a custom importer to search .scpt files. But
there's a problem. To provide searchable data, the importer would
need to decompile each script back to source code. Decompiling a
compiled AppleScript means obtaining the terminology for every
application that script talks to. But some applications have to be
launched and running before their terminology can be retrieved
(e.g. Address Book, QXP). So guess what'd happen each time
Spotlight tries to index a .scpt file that uses one of those apps?
IOW, I'm pretty sure that allowing Spotlight to search compiled
AppleScripts is impractical, as most users would not be happy about
various applications mysteriously sproinging to life on their
desktops at random intervals. :(
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40red-sweater.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden