Ticket #334 (new enhancement)

Opened 3 years ago

Last modified 2 years ago

AS - script file .scpt extensions and aliases

Reported by: Niteshade Assigned to: timothy
Priority: low Component: AppleScript Support
Version: 2.0 (2D16) Severity: normal
Keywords: alias .scpt extension optional Cc:

Description

At the moment one requires an ending of .scpt for Colloquy to recognise an applescript plugin and load it.

It would be nice if scripts where recognised if

• the ".scpt" file extension was absent (the OS has older better ways for recognising an applescript, without resorting to messing up the file name with hidden file name extensions that may or may not be there...).

• an alias to the file was used. For when the file is stored elsewhere (e.g. in an area of your hard drive that you regularly back up). At the moment you have to give aliases an extension of ".scpt" to get them to work. It shouldn't be that cryptic.

thanks

Change History

12/11/05 09:50:01 changed by brennan@young.net

It might even be useful to accept text files also (i.e. .txt). If the file is recognised as text, it should be fed to the AppleScript? 'compiler' exactly as happens when you do (run script (choose file)), the resulting script object returned should then be treated in the same way as any other script object.

Note also that some scripts are applets or droplets. These will end with .app rather than .scpt Right now I can't think of a reason to load a droplet into colloquy, but that doesn't mean there isn't a good reason to do so. Certainly it might make sense to have an applet loaded into colloquy. (Probably some scoping issues to attend to, so that the instance loaded into colloquy is guaranteed to be the same as the one running in the applecript applet, or if not, that there is some way to hook them up to each other).