Safari.app and saving frontmost document
Safari.app and saving frontmost document
- Subject: Safari.app and saving frontmost document
- From: Jacco Rens <email@hidden>
- Date: Fri, 7 May 2004 22:07:02 +0200
Hi list-members,
Can someone show me the way to save an safari window, just like we do
with command + s ? The following doesn't work, although logic says it
should:
tell application "Safari"
set theFile to (path to desktop as text) & "mytextfile.txt"
try
set openedFile to open for access theFile with write permission
save document 1 in openedFile
close access openedFile
end try
end tell
I tried saving the source, but that returns unusable (Unicode?) output.
best,
jacco rens,
Netherlands
_______________________________________________
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.