• 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 Without Dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Save Without Dialog


  • Subject: Re: Save Without Dialog
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Fri, 13 Feb 2015 14:02:10 -0500

On Feb 12, 2015, at 5:00 PM, S. J. Cunningham wrote:

> I'm sure this is an common problem.  I have an app (iVeiw Media Pro) which insists on a save dialog when I try to save a catalog.  I'm sure many other apps have the same issue and hope someone has figured out a way to bypass or close it.  "save theCatalog in hfs:path" doesn't work nor does anything else I have tried.  Surely there must be an accessibility trick or something to push the blue save button for me.

Following up on my own post for the benefit of anyone else seeking a solution, I found out how to do it using "System Events" courtesy of a script posted on the Phase One forums by Larry_S (http://forum.phaseone.com/En/viewtopic.php?f=43&t=10525).  Here is the relevant script fragment:

tell application "System Events"
tell application process "Media Pro"
	keystroke "s" using {command down, shift down} -- open Save As... dialog
	delay 2
	keystroke "g" using {command down, shift down} -- open Go to Folder sheet
	set the clipboard to parentPOSIXPath
	--keystroke parentPOSIXPath
	delay 0.5
	keystroke "v" using {command down} -- paste the new folder destination
	delay 0.5
	keystroke return -- close Go to Folder sheet
	delay 0.5
	keystroke return -- close Save As... dialog
	end tell
end tell

I had no idea you could invoke "Go To Folder" from the Save dialog.  The same technique will probably work with any other application that forces a Save dialog.  While searching for a solution I found many other people had a similar problem with other applications.  In Media Pro's case the problem is that the "file" in "Save xxx in file" is not recognized, hence the dialog.  Since the Save command is part of the Applescript Standard Suite, I guess they didn't test it.


 _______________________________________________
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 Without Dialog (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Script editor scrolling
  • Next by Date: Re: can't find error
  • Previous by thread: Save Without Dialog
  • Next by thread: Script editor scrolling
  • Index(es):
    • Date
    • Thread