Re: error 10
Re: error 10
- Subject: Re: error 10
- From: Oz Springs <email@hidden>
- Date: Sun, 31 Aug 2003 09:52:39 +0100
At 09:36 +0100 31/8/03, John Delacour wrote:
>
>
>
tell app "Safari" to tell the front document
>
set AppleScript's text item delimiters to "/"
>
set _doc to last text item of (get its URL)
>
set AppleScript's text item delimiters to ""
>
set f to (path to desktop as Unicode text) & _doc
>
save in file f
>
end
>
>
where 'front document' is the object of 'save'. In your changed version
>
you would need to write 'save front document...'
>
John:
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.
Kind regards
Oz
_______________________________________________
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.
References: | |
| >error 10 (From: Van Brollini <email@hidden>) |
| >Re: error 10 (From: John Delacour <email@hidden>) |