On Jul 25, 2012, at 6:28 AM, Shane Stanley <email@hidden> wrote:
Here's a link to a utility I've written for those who may not upgrade yet but will receive script files from others who do.
Please drop a note here if you find that you actually receive scripts from others that contain uncompiled changes. Since one should compile and run scripts before sharing them with others, it should be unlikely that one will unknowingly distribute scripts with uncompiled source changes. If it occurs on a regular basis we need to know about it.
To explain: Script Editor autosaves source changes, but if you have not yet compiled those changes it will store the uncompiled source as rich text (RTF) and save a placeholder script that produces an error to let you know that it contains uncompiled changes (in case you run it outside Script Editor). If you Compile or Run the script (which compiles it), the script will be up to date and autosave will simply save the script as usual. The only time this change should be noticeable is if you change a script since the last time it was compiled, then share the script file to a user using an older OS version, where Script Editor doesn't know how to read the rich text source so they can compile it. If you're concerned that you may have made source changes, simply Compile, Run, or Save the script before sharing it, as usual. (An explicit Save compiles a script, as usual.)
-- Chris Page
The other, other AppleScript Chris
|