• 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
Safari.app and saving frontmost document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Safari.app and saving frontmost document
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: how can an application's AS dictionary be wrong ?
  • Next by Date: Re: how can an application's AS dictionary be wrong ?
  • Previous by thread: Re: how can an application's AS dictionary be wrong ?
  • Next by thread: Re: Safari.app and saving frontmost document
  • Index(es):
    • Date
    • Thread