Option Click App Launch

Hey gang,

Wondering if anyone can help me out because extension web research hasn’t turned up anything.

I’m trying to script the process of launch an app with the equivalent process of when you hold down the option key and click the icon in the dock. For an app like iPhoto, it then offers you the choice of which library to open.

In my case, I’m trying to do the same thing with the Things.app application.

I would, if I could, just tell Things.app to open the applicable folder but ‘open’ is not a supported AS command.

Any help would be greatly appreciated.

Thanks,

Jase

“Open” is a command in the Finder’s dictionary.

open
open (verb)Open the specified object(s) (from Standard Suite)

command syntax:
open reference ¬
using reference ¬
with properties record

Example:


set file2open to (choose file) -- or choose folder, both are in Standard Additions osax
tell application "Finder" to open file2open using "path to Things.app"

JBS

Model: iMac
AppleScript: 2.5
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko)
Operating System: Mac OS X (10.10)

Hey thanks for helping out.

Things doesn’t use a specific file, but rather just refers to a folder so I’ve changed that.

But, I still get the error ‘AppleEvent handler failed’.

Do I need to specify the path to Things.app?

Also, I know that the open command is NOT in the Things.app dictionary so would this also cause a problem.

Thanks again,

Jase