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: has <email@hidden>
- Date: Sun, 8 May 2005 22:53:11 +0100
pete boardman wrote:
>>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.
>
>In that case, perhaps Script Editor could save a text-only version of the script inside the file somewhere...?
Quite possibly. Good point.
Ideally the AppleScript component would have done exactly this from the start. It's kinda annoying that editable compiled AppleScripts have never carried sufficient information to allow source code to be retrieved/regenerated even when the applications and osaxen used aren't present. None of that mysterious <<blah blah>> stuff appearing when trying to read compiled scripts that were written elsewhere, apart from anything else. Other OSA languages do include source in editable compiled scripts, btw, so don't have such problems. It may be too awkward to retrofit AS with such a facility now though.
Stuffing the source code (where permitted) into a script bundle may be the most likely - if somewhat clumsy - option. Such a change would need to come from Apple though, and adopted by Script Editor, third-party editors, the OSA API and anything else that saves compiled AppleScript files before it'd be fully viable (there are sychronisation issues to consider, for example). And scripts saved on older systems and applications would, of course, need to be re-saved under the new system before they can be recognised, and may lose some backwards-compatibility once they are. So it'll take time.
A third-party IDE vendor might create their own proprietary scheme, but that'd obviously be quite limited in its usefulness. Probably the best thing for folks here to do is file the obligatory AppleScript feature request with Apple and wait...
Cheers,
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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