• 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: Works in Debugger mode... not anywhere else. Weird.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Export QuickTime Movie
  • Next by Date: Re: Export QuickTime Movie's frames as sequence of images
  • Previous by thread: Re: Works in Debugger mode... not anywhere else. Weird.
  • Next by thread: Export QuickTime Movie
  • Index(es):
    • Date
    • Thread