Selecting INDD files in Finder (via applescript)?


back in day 1 used able select dozen's files (indd or otherwise) sweep of mouse, when files in different folders (see image below).

 

but os x forces cmd+click every individual file. such waste of time, , if mis-click files either open, move folder or become deselected. super annoying.

 

***my question is, applescript written "select visible indd files within open window" such window shown in screenshot below?

 

i'm not scripter, , haven't ever scripted finder specifically. know if seems reasonable accomplish.

any resources kinds of scripts appreciated also.

 

thanks much.

-bsaphex

 

multi_files_folders.png

in theory, should enough:

 

tell application "finder" to select (every file of entire contents of target of window 1 whose name extension is "indd")

 

but in practice can't cope, , tends crash finder. if you're happy use free third-party help, want:

 

tell application "finder" to set thefolder to target of window 1 as alias

tell application "asobjc runner" to set thefiles to enumerate folder thefolder match extensions {"indd"} with recursion

tell application "finder" to set selection to thefiles


you can asobjc runner here: www.macosxautomation.com/applescript/apps/runner.html



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support