• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa interact with finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa interact with finder


  • Subject: Re: cocoa interact with finder
  • From: Mike Abdullah <email@hidden>
  • Date: Fri, 20 Jan 2006 13:58:56 +0000

Yes, an applescript that gets the path of the selected file of the frontmost window of the Finder is pretty easy to write. Using NSAppleScript to run that script and get the result from it is pretty easy as well.

Mike.

On 20 Jan 2006, at 11:26, Camillo Lugaresi wrote:

On 20/gen/06, at 08:42, Raphael wrote:

Hi,
is it possible to get from a cocoa application the selected finder file or folder?
I mean, if the finder has only select a file (not open it) can I see the file path string in a cocoa
application?

You can use AppleEvents or an AppleScript (which uses AEs under the hood). The latter is probably easier.


Camillo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: cocoa interact with finder
      • From: Raphael <email@hidden>
References: 
 >cocoa interact with finder (From: Raphael <email@hidden>)
 >Re: cocoa interact with finder (From: Camillo Lugaresi <email@hidden>)

  • Prev by Date: Re: How to decompress file
  • Next by Date: Re: cocoa interact with finder
  • Previous by thread: Re: cocoa interact with finder
  • Next by thread: Re: cocoa interact with finder
  • Index(es):
    • Date
    • Thread