Re: error 10
Re: error 10
- Subject: Re: error 10
- From: John Delacour <email@hidden>
- Date: Sun, 31 Aug 2003 11:01:25 +0100
- Mac-eudora-version: 6.1a1
At 9:52 am +0100 31/8/03, Oz Springs wrote:
re: save in file f
I get error 10 when simply running your script on this line,
depending on what I am using. Script Debugger tells me error 10,
Smile & Script Editor says:
"Safari got an error:
NSCannotCreateScriptCommandError"
Also "Save" and "in" stay blue while all the "Set"s and "to"s on the
other lines go bold red when the script is compiled.
In my (so far vain) attempts to work AppleScript out myself I have
tried a few variations, but none of them have worked either.
Well it works for me and it's hard to know which bit is causing the
problems in your set-up. It may be the 'file' thing or it may be
that Safari 1.0 isn't doing 'save' as advertised in the dictionary.
Try this *** with Event Log *** and tell me if/where it breaks.
set d to "0"
set _desk to path to desktop as Unicode text
set f to _desk & (current date) - (get date d) & ".html"
set _file to f as file specification
tell application "Safari" to save document 1 in _file
tell application "Finder"
reveal _file
activate
end tell
JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.