• 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
applescript and Preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applescript and Preview


  • Subject: applescript and Preview
  • From: Hernan Ochoa <email@hidden>
  • Date: Sun, 15 May 2005 14:15:56 -0300

I'm tryng to script Preview, but for some reason, it is failing.
Here's the code:

tell application "System Events"
	tell process "Preview"
		tell menu bar 1
			click menu item "save as..." of menu "file"
		end tell
	end tell
end tell

but I get the following error:

process "Preview"
		"System Events got an error: NSReceiverEvaluationScriptError: 4"

Is there another way to do this?
meanwhile, I'll keep trying :).
thanks much.

bye!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: applescript and Preview
      • From: kai <email@hidden>
  • Prev by Date: Re: What is your feeling about the XML Suite (System Events) ?
  • Next by Date: Re: Script Editor hangs on "Open Dictionary"
  • Previous by thread: How do I save to disk a XML data
  • Next by thread: Re: applescript and Preview
  • Index(es):
    • Date
    • Thread