• 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
"Executing" a File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Executing" a File


  • Subject: "Executing" a File
  • From: Chris Williams <email@hidden>
  • Date: Thu, 04 Oct 2007 19:48:11 -0700
  • Thread-topic: "Executing" a File

I want to be able to programmatically open or "execute" a random file.  For
example, if I open a .jpg, it would open in Preview.  If I open a .doc, it
would open in Word.  And so on.  Basically, just execute the default "open
action" for the file.

(Forgive me for this, but) in Windows code, I can just tell .NET to "open" a
file, and it will do the default action.  NSTask seems to need an
executable.  How do I find that executable?

Thanks.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: "Executing" a File
      • From: Guy English <email@hidden>
  • Prev by Date: Re: How to have a shared integer variable in application
  • Next by Date: Re: "Executing" a File
  • Previous by thread: Re: multiple methods named 'xxx' found.
  • Next by thread: Re: "Executing" a File
  • Index(es):
    • Date
    • Thread