Re: Saving a document in Safari
Re: Saving a document in Safari
- Subject: Re: Saving a document in Safari
- From: John Delacour <email@hidden>
- Date: Tue, 11 Feb 2003 20:27:33 +0000
On Tuesday, February 11, 2003, at 05:38 PM, Michelle Steiner wrote:
Safari's dictionary says that an optional parameter of save is "in"
which takes Unicode text as the destination of the save.
Unfortunately, it doesn't work, and generates an error. Likewise if
you specify a file as the parameter, it also generates an error. Of
course, if you specify an alias, it says that the target file does not
exist.
You're forgetting that we're living in a brave new world, Michelle.
The dictionary is quite clear in requiring a text pathname, an that
pathname must, of course be a Unix pathname.
set f to POSIX path of ("" & (path to desktop) & "junk.html")
tell app "Safari" to save front document in f as text
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.