Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 5 of 5
  1. #1
    charliedz is offline Registered User
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    applescripts to open items at cursor location

    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!

  2. #2
    SGilbert is offline Registered User
    Join Date
    Sep 2005
    Location
    No. Indiana
    Posts
    804
    Thanks
    19
    Thanked 56 Times in 55 Posts
    Not quite sure what you are asking, but look into 'LazyMouse'. It may do some of what you are asking.
    MBP, 17", 2.6GHz Core 2 Duo, 4G RAM, 200G 7200 drive, Hi-Def. Glossy screen; iPhone5

  3. #3
    charliedz is offline Registered User
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  4. #4
    charliedz is offline Registered User
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  5. #5
    ElDiabloConCaca's Avatar
    ElDiabloConCaca is offline U.S.D.A. Prime
    Join Date
    Aug 2001
    Location
    San Antonio, Texas
    Posts
    14,490
    Thanks
    10
    Thanked 648 Times in 610 Posts
    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.
    2009 Mac mini 2.0GHz • 2010 MacBook Air 11" • 2010 MacBook Pro 13" • LED 24" Cinema Display
    PowerMac G4 MDD dual 1.25GHz • PowerMac G4 Yikes! • iPad 2 32GB • 2 x iPhone 4 16GB • iPod Touch 8GB • iPod nano 1GB • iPod shuffle 1GB • AirPort Extreme dual-band • AppleTV
    http://www.jeffhoppe.com

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •