Apple Scripting Core Suite Fails
Apple Scripting Core Suite Fails
- Subject: Apple Scripting Core Suite Fails
- From: John Nairn <email@hidden>
- Date: Wed, 18 Jun 2003 10:56:49 -0600
I am making my Cocoa application scriptable and I thought many core
commands would work for free once the basics were set up. Many do work,
but some do not. Is there information on what is not automatically
supported despite being in the Core suite?
For example the "save" command saves a document but it does not work
when trying to specify a file as in
save front document in file outFile
This Apple Script command always fails. It works if it is just "save
front document", but specifying a file location fails. I also noted the
script editor did not color the key word "in" in red as it does for
other command arguments. The core suite dictionary, however, does show
"in" as the proper word.
Other facts:
1. It fails with error message NSCannotCreateScriptCommand error.
2. The document being saved is new and has never been saved before.
3. The outFile path is definitely a valid path, but it points to a file
that does not yet exist
------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.