• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Saving a document in Safari - Solved!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving a document in Safari - Solved!


  • Subject: Re: Saving a document in Safari - Solved!
  • From: Rick Bargerhuff alias cougar <email@hidden>
  • Date: Tue, 11 Feb 2003 16:39:18 -0500

Hey john!

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


You solved it. Thanks man. Well, I now know what exactly unicode text means. This saves the file
perfectly. Just change "text" to what your document is, i.e. picture, sound, etc.

Good deal John.

Thanks to all who participated in this topic!

Cheers!

Rick Bargerhuff alias cougar
Programmer / Developer
Multi-platform Technician / Specialist / Web Designer
Personal Email: email@hidden
Personal Website : http://mywebpages.comcast.net/cougar718
_______________________________________________
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: 
 >Re: Saving a document in Safari (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Saving a document in Safari
  • Next by Date: Re: Saving a document in Safari
  • Previous by thread: Re: Saving a document in Safari
  • Next by thread: Re: Saving a document in Safari
  • Index(es):
    • Date
    • Thread