Re: Finder f*ck-ups
Re: Finder f*ck-ups
- Subject: Re: Finder f*ck-ups
- From: Martin Orpen <email@hidden>
- Date: Fri, 19 Aug 2005 10:11:41 +0100
on 19/8/05 09:14, Rosyna at email@hidden wrote:
> I don't quite understand why everyone likes to use the Finder as a
> punching bag.
The clue would be in the name...
Here's a quick script to get things back on-topic:
tell application "Finder"
set foo to name of files of window 1 as string
if foo is "" then set foo to "pathetic"
set myFolder to (target of front window) as Unicode text
end tell
set pPath to quoted form of POSIX path of myFolder
set bar to "The Finder's file list is: " & foo & return & "The shell's file
list is: " & (do shell script "ls " & pPath)
--> The Finder's file list is: pathetic
The shell's file list is: VIDEO_TS.BUP
VIDEO_TS.IFO
VIDEO_TS.VOB
VTS_01_0.BUP
VTS_01_0.IFO
VTS_01_0.VOB
VTS_01_1.VOB
VTS_01_2.VOB
VTS_01_3.VOB
VTS_01_4.VOB
VTS_01_5.VOB
VTS_01_6.VOB
VTS_01_7.VOB
VTS_01_8.VOB
If the app was renamed "Loser" then I guess there'd be no reason to
complain?
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden