Re: Works in Debugger mode... not anywhere else. Weird.
Re: Works in Debugger mode... not anywhere else. Weird.
- Subject: Re: Works in Debugger mode... not anywhere else. Weird.
- From: John Delacour <email@hidden>
- Date: Thu, 28 Aug 2003 21:59:52 +0100
I wrote
You're almost certainly not giving the Finder the sort of food it
now needs. Make sure you give it a folder or an item. Script
Debugger may be doing some coercions that are masking the problem.
set _path to (path to desktop) as Unicode text
tell app "Finder" ...
An alias will work too:
set _folder to (path to desktop) -- as alias -- which it is already
tell application "Finder"
set _list_1 to name of files in _folder whose name ends with ".txt"
set _list_2 to name of files in _folder whose file type is "TEXT"
{_list_1, _list_2}
end tell
.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.