• 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:53:53 +0100

At 10:38 am -0400 28/8/03, David Jacopille wrote:
I'm authoring in Script Debugger 3.0.6 on 10.2.6. I've ported this
script from OS 9 which did not have this issue.

tell application "Finder"
try
set hypoFolderContents to (name of every file in hypoFolder whose
name ends with ".txt") as list
-- set hypoFolderContents to (name of every file in hypoFolder whose
file type is "TEXT") as list
on error
set hypoFolderContents to {}
end try
end tell


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"
set _folder to item _path -- or folder _path -- *****
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


JD




.
_______________________________________________
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.

References: 
 >Works in Debugger mode... not anywhere else. Weird. (From: David Jacopille <email@hidden>)

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