05-29-2012, 05:15 AM #1
get the currently active finder window using objc
- Member Since
- Aug 07, 2009
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
05-29-2012, 05:54 PM #2
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By dcairns in forum Switcher HangoutReplies: 5Last Post: 12-09-2011, 11:13 AM
By canyonchaser in forum Switcher HangoutReplies: 6Last Post: 10-08-2009, 07:16 PM
By Dogen2008 in forum Switcher HangoutReplies: 2Last Post: 09-21-2008, 11:19 AM
By tyson0016 in forum OS X - Apps and GamesReplies: 11Last Post: 10-20-2007, 09:59 PM
By meatus in forum OS X - Operating SystemReplies: 1Last Post: 10-03-2007, 01:11 AM