Re: Save safari document
Re: Save safari document
- Subject: Re: Save safari document
- From: Martin Orpen <email@hidden>
- Date: Sat, 14 Feb 2004 15:04:14 +0000
on 14/2/04 10:11 am, Jacco Rens at email@hidden wrote:
>
I cannot save any document into an file anymore;
>
tell application "Safari"
>
set the temp_file to (path to desktop folder) & "test.HTML" as text
>
save document 1 as Unicode text in temp_file
>
end tell
Don't you have to open and close these files?
tell application "Safari"
set myData to source of document 1
end tell
set fPath to path to desktop
set myFile to open for access file ((fPath as string) & "temp.html") with
write permission
write myData to myFile
close access myFile
Regards
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.