Re: Printing contents of the active Desktop window
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