• 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 as web archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Save as web archive


  • Subject: Re: Save as web archive
  • From: Lists <email@hidden>
  • Date: Wed, 15 Jan 2014 09:13:01 -0800

On Jan 15, 2014, at 8:10 AM, Alex Zavatone <email@hidden> wrote:


On Jan 15, 2014, at 11:00 AM, koenig.yvan wrote:

set p2d to path to desktop as text

tell application "Safari"
name of document 1
save document 1 in (p2d & result & ".webarchive")
end tell

does the job

If this works, that's odd and sorta scary that just specifying the file name determines the type of file you are saving as.


Pages (at least v4) has been that way for a long time. Nothing new for Apple apps.

tell application "Pages"
launch
set filname to (destn as string) & nuname & "rtf"
open lvar
save document 1 in filname
close every window saving no
end tell

Or

tell application "Pages"
launch
set filname to (destn as string) & nuname & "pdf"
open lvar
save document 1 in filname
close every window saving no
end tell

J
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Save as web archive (From: Bryan Harris <email@hidden>)
 >Re: Save as web archive (From: Alex Zavatone <email@hidden>)
 >Re: Save as web archive (From: "koenig.yvan" <email@hidden>)
 >Re: Save as web archive (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Save as web archive
  • Next by Date: Re: Save as web archive
  • Previous by thread: Re: Save as web archive
  • Next by thread: Re: Save as web archive
  • Index(es):
    • Date
    • Thread