Monte Goulding wrote/ schreef:
> Hi
>
> I have been trying the scripts posted to edit the file exchange. Sjoerd's
> script works but it leaves the file exchange open on the desktop:
> <snip>
> but Alain's revision of this that seems to attempt to close the File
> Exchange didn't seem to work at all.
>
> Is there anything I'm missing here. Please use language that the
> aesthetically challenged may understand ;-) Does the try need an end try or
> does the get extension mapping "soma" need to be ".soma"?
Well, you're giving the answer yourself. The script should be (tested):
tell application "File Exchange"
mount now
try
get extension mapping "soma"
on error
make new extension mapping with properties {PC extension:".soma",
creator type:"SOMA", file type:"SOMA"}
end try
quit
end tell
Note about this script:
If you're on a Dutch system (like me) the script system will ask "Where is
'File Exchange'?". Maybe you'd better prepare the user on this question, or
put "The File Exchange Control Panel" instead of "File Exchange", so that
the question (which is then posed always, also on an English system), is
then clear for the user.
Note about scripts:
The downside of running scripts with my library is of course that you won't
get any clear error messages if there is an error, it just won't work. So a
good way of testing your scripts is running them from within the AppleScript
scriptmaker (can be found in the Apple Extras folder on your harddisk), and
when telling the "Finder", remove that when you use my library, because
that's always talking to the "Finder".
> Regards
>
> Monte
Hope this helps (also when I'm late),
Sjoerd
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.