applescripts to open items at cursor location

charliedz

Registered
hi everyone,

ive had some decent experience with minor automation, but now im trying to get a little more serious.

1. i'm wondering if its possible to write a script that could open up an application, folder, or document such that the header bar of the window opens just under my mouse.

so the key would be to read where the mouse is located and move the said window there.

2. when writing scripts for specific applications, where do you find out what the applications specific names to functions calls, and actions?

any leads would be greatly appreciated?

thanks!
 
yeah, ive seen something like that before, but thats not exactly what i want.

i don't want my mouse cursor to move, i just want to be able to open stuff up wherever my cursor is.
 
also,

i am using quicksilver, which can open up and perform script actions for individual applications. so i already have the ability to open up applications using keyboard shortcuts or mouse gestures with quicksilver. all that remains is doing so where the cursor is.

ideally, i would like to not have to rely on quicksilver, and just be able to run the script at the system level.
 
You can find out what AppleScript actions apply to certain applications by opening "Script Editor", then selecting "Open Dictionary..." from the file menu. You will then be asked to select an application -- doing so will open a window (and it may or may not launch the program as well) that lists all the AppleScript actions you can perform on an application. You can integrate AppleScript into your Automator workflow to get some real bang-for-your-buck.

The mouse coordinates may be located under the "Finder" application -- if not there, I'm not sure where they'd be located.
 
Back
Top