• 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: Save safari document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Save safari document (From: Jacco Rens <email@hidden>)

  • Prev by Date: Save safari document
  • Next by Date: Launch script within Mail problems
  • Previous by thread: Save safari document
  • Next by thread: Launch script within Mail problems
  • Index(es):
    • Date
    • Thread