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

Posted on Nov 27, 2013 7:59 AM

Reply
12 replies

Nov 28, 2013 8:15 AM in response to MattJayC

I get this error as there are no spaces


The file / StudioC:Users:StuidoC:Desktop:HotFolder:ARK_0076.jpgStudioC:Users:StuidoC:Deskt op:HotFolder:ARK_0077.jpgStudioC:Users:StuidoC:Desktop:HotFolder:ARK_0078.jpgStu dioC:Users:StuidoC:Desktop:HotFolder:ARK_0079.jpg


does not exist


I assumed this was as there is not space between jpg and the next path, so I tried it with one file and you get the same.

Nov 28, 2013 8:54 AM in response to Tony T1

Different one now.


error "Can’t make quoted form of POSIX path of {alias \"StudioC:Users:StudioC:Desktop:HotFolder:ARK_0095.JPG\", alias \"StudioC:Users:StudioC:Desktop:HotFolder:ARK_0094.JPG\", alias \"StudioC:Users:StudioC:Desktop:HotFolder:ARK_0093.JPG\"} into type Unicode text." number -1700 from quoted form of POSIX path of {alias "StudioC:Users:StudioC:Desktop:HotFolder:ARK_0095.JPG", alias "StudioC:Users:StudioC:Desktop:HotFolder:ARK_0094.JPG", alias "StudioC:Users:StudioC:Desktop:HotFolder:ARK_0093.JPG"} to Unicode text

Nov 28, 2013 9:00 AM in response to Tony T1

😟

Can’t make quoted form of POSIX path of {«class docf» "ARK_0015.JPG" of «class cfol» "HotFolder" of «class cfol» "Desktop" of «class cfol» "StudioC" of «class cfol» "Users" of «class sdsk» of application "Finder", «class docf» "ARK_0014.JPG" of «class cfol» "HotFolder" of «class cfol» "Desktop" of «class cfol» "StudioC" of «class cfol» "Users" of «class sdsk» of application "Finder", «class docf» "ARK_0013.JPG" of «class cfol» "HotFolder" of «class cfol» "Desktop" of «class cfol» "StudioC" of «class cfol» "Users" of «class sdsk» of application "Finder"} into type Unicode text.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Select files of Finder and open in application (Helicon Focus)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.