Select files of Finder and open in application (Helicon Focus)
I had this script working before with a script on this and it has been working fine until they released the latest version. I currently cannot get it to open the files.
Helicon does not support Applescript
I added the option T within the keyboard shortcuts of OS.
tell application "Finder"
activate
try
select window "HotFolder"
on error
return
end try
end tell
tell application "System Events"
set theName to name of the first process whose frontmost is true
end tell
if theName is in {"Finder"} then
try
tell application "Finder" to set currFolder to Finder window "Hotfolder"
on error
return
end try
tell application "Finder"
set tFiles to selection as alias list
logtFiles
end tell
activateapplication "HeliconFocus"
delay 0.2 -- adjust the time if necessary.
tell application "HeliconFocus"
tell application "System Events"
keystroke "t" using {command down}
end tell
end tell
delay 1
tell application "HeliconFocus" to open tFiles
--it gets stuck here and wont open the files
delay 10 -- to allow time for the application to display the files in the window. (adjust the time if necessary.)
tell application "System Events"
keystroke "r" usingcommand down
delay 2.5
end tell
tell application "System Events"
tell process "Helicon Focus"
tell menu item "Save ImageâŠ" of menu "File" of menu bar 1 to repeat
delay 1.5
if enabled then
click-- to save the image
exit repeat
end if
end repeat
tell application "System Events"
delay 1
end tell
end tell
end tell
end if