Re: Save Without Dialog
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