• 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: "I. Savant" <email@hidden>
  • Date: Thu, 16 Aug 2007 11:22:36 -0400

On 8/16/07, email@hidden <email@hidden> wrote:
> > Stitching screenshots together to get a printable directory listing?
>
> Uh... no, this is NOT my solution. This is what various people have
> thus far suggested; I was just pointing out it's limitation.
> As I stated, my goal is to derive a list of filenames.

  Ah - gotcha ... I admit I hadn't been following closely, but that
particular statement (the one to which I responded) struck me as odd.
:-)

> > 1 - Ask Finder for the path in its frontmost window (via AppleScript)
> Looking into this.
> Step #1 is the missing link and the reason I began this thread.
> I will try your (and others) AppleScript suggestion. Seems reasonable.

  Okay ...  in that case:

tell application "Finder"
     get POSIX path of (target of front window as alias)
end tell

  This is easily called from a Cocoa app and could *probably* be
improved, but I'm no AppleScript guru and this gets you most of the
way there.

--
I.S.
_______________________________________________

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: 
 >Re: Printing contents of the active Desktop window (From: email@hidden)

  • Prev by Date: Re: Cocoa Bindings master-detail interface with sets of data in the detail part
  • Next by Date: Re: Printing contents of the active Desktop window
  • 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