• 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: Printing contents of the active Desktop window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing contents of the active Desktop window


  • Subject: Re: Printing contents of the active Desktop window
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 16 Aug 2007 10:16:10 +0200

On 15.08.2007, at 20:27, email@hidden wrote:
I am attempting to write a program (actually, a service) that will allow the user to print the contents of the currently active Desktop window.

The only problem I'm having is that I do not know how I can get a path to the active desktop window. My program accepts a path to a directory and then renders its expanded contents to an outlineview which I then print.

Desktop window? There is only one desktop window, it's created by the Finder and filled with the selected desktop background picture. I don't think you'd ever have several of these, but if you want to print the contents of that somehow, I guess your best bet would be asking the Finder via AppleScript for the names of the files in there.


A little less future-safe, but probably slightly more efficient might be to just scan the user's desktop folder for its file list, and then parse the Finder preferences or com.apple.sidebar.plist or wherever that info is saved to detect what other items should be shown on the desktop (Finder has prefs deciding what to show).

Is that really what you're trying to do? Sounds rather pointless to me, and "active desktop window" sounds like you mean something else... do you mean the active Finder window? It would really help if you looked at Apple's docs some and cleared up your terminology. Especially since that may mean that someone could give you a useful answer.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

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


References: 
 >Printing contents of the active Desktop window (From: email@hidden)

  • Prev by Date: NSString -drawWithRect:options:attributes
  • Next by Date: Re: Copyright Info from InfoPlist.strings
  • Previous by thread: Re: Printing contents of the active Desktop window
  • Next by thread: Re: Printing contents of the active Desktop window
  • Index(es):
    • Date
    • Thread