Re: error 10
Re: error 10
- Subject: Re: error 10
- From: John Delacour <email@hidden>
- Date: Sun, 31 Aug 2003 09:36:38 +0100
- Mac-eudora-version: 6.1a1
At 6:31 pm -0700 30/8/03, Van Brollini wrote:
tell application "Safari"
set t to name of window 1
set AppleScript's text item delimiters to "/"
set s to URL of document 1
set _doc to last text item of s
set r to text of document 1
set AppleScript's text item delimiters to ""
set f to "users/vanbroll/Desktop/temp/" & _doc
save in file f
delay 0.5
can anyone tell me why I get an error 10 and what it is at the save in
file f?
You have given no parameter for the save command. The script I gave you was
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...'
You can also do this:
do shell script "cd; cd Desktop;
curl -o scripting.html
http://www.scripting.com"
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.
References: | |
| >error 10 (From: Van Brollini <email@hidden>) |