New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

get the currently active finder window using objc


Post Reply New Thread Subscribe

 
Thread Tools
prolog@jumbosof

 
Member Since: Aug 07, 2009
Posts: 2
prolog@jumbosof is on a distinguished road

prolog@jumbosof is offline
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
Ronald
---
QUOTE Thanks
Mark FX

 
Mark FX's Avatar
 
Member Since: Aug 13, 2011
Location: West Sussex, UK
Posts: 167
Mark FX has a spectacular aura about

Mark FX is offline
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.

https://developer.apple.com/library/...uid/TP40003745

https://developer.apple.com/library/...uid/TP40003618

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.

MacScripter

Good Luck.

Regards Mark
QUOTE Thanks

Post Reply New Thread Subscribe


« PLEASE HELP A gfortran NEWBIE... | Programming and coding for beginners »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Finder window freezing when in ccon view. dreeftwood OS X - Operating System 6 03-01-2011 10:27 PM
Default Finder Window benparko OS X - Operating System 4 02-23-2011 01:20 PM
Tabs opening in a minimised safari window, not the active one. vree28 OS X - Apps and Games 2 10-28-2010 05:34 PM
Finder Launches Document Window At Startup jodeverill OS X - Operating System 14 12-04-2006 06:25 PM
Printing finder window in panther... michevans OS X - Operating System 4 12-21-2003 01:17 AM

All times are GMT -4. The time now is 04:10 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?