Results 1 to 2 of 2
  1. #1

    Member Since
    Aug 07, 2009
    get the currently active finder window using objc
    Hi everyone,
    I have many small projects I once created with AppleScript Studio.
    Now that AppleScript Studio was cancelled I decided to learn ObjC and for training purposes I do all of my AppleScript Studio projects in ObjC. Nice training

    Right now i'm working on my FileNamerX. I's a small application for lion to change file and folder names on the fly as well as adding and removing suffixes and prefixes. In order to get this working I check on awakeFromNib if there is an open Finder window.

    At the the moment I wonder if it is possible to do this using objective-c. All of the solutions I googled use an AppleScript solution.

    Is somebody out there who can shed some light on my brains?

    Greetings from Switzerland

  2. #2

    Mark FX's Avatar
    Member Since
    Aug 13, 2011
    West Sussex, UK
    I'm not aware of a direct way to access other desktop applications with Objective-C, but thats not to say there is'nt a way, I think I would look into the NSTask or NSApplescript class's.

    The best way to interact with other desktop applications is definitely Applescript, a lot of the former Applescript studio users went over to the ApplescriptObjC language, using the Xcode developer tools, there is a very knowledgable bunch of people over at the Macscripter ApplescriptObjC forums, that I think could advise you with this one.


    Good Luck.

    Regards Mark

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Changing Active Window Highlighting-
    By dcairns in forum Switcher Hangout
    Replies: 5
    Last Post: 12-09-2011, 10:13 AM
  2. Active window question/problems
    By canyonchaser in forum Switcher Hangout
    Replies: 6
    Last Post: 10-08-2009, 06:16 PM
  3. Maxamize active window
    By Dogen2008 in forum Switcher Hangout
    Replies: 2
    Last Post: 09-21-2008, 10:19 AM
  4. How to dim everything but active window?
    By tyson0016 in forum OS X - Apps and Games
    Replies: 11
    Last Post: 10-20-2007, 08:59 PM
  5. window minimizing when not active
    By meatus in forum OS X - Operating System
    Replies: 1
    Last Post: 10-03-2007, 12:11 AM

Posting Permissions

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