Re: error 10
Re: error 10
- Subject: Re: error 10
- From: Oz Springs <email@hidden>
- Date: Sun, 31 Aug 2003 15:16:37 +0100
At 11:01 +0100 31/8/03, John Delacour wrote:
>
>
>
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
at this point the script hangs and Safari crashes:
tell application "Safari" to save document 1 in _file
I think there is something wrong with the "save" part of this and maybe Safari hasn't implemented this part of AppleScript, even though it is in its dictionary. Script Debugger acknowledges "file" (file=file), but it just hovers over "save" without showing anything.
_______________________________________________
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.