• 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: error number -37 from list folder command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error number -37 from list folder command


  • Subject: Re: error number -37 from list folder command
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 7 Feb 2011 15:35:51 +0100


Le 7 févr. 2011 à 15:14, Jim Brandt a écrit :

I have a script that uses the "list folder" scripting addition.

set item_list to list folder source_folder without invisibles

Yesterday, this script aborted with the error number -37 - "Bad name for file." It shows the folder name for the folder I'm trying to get a list of names for, but doesn't tell me the name of the offending file. 

How is it possible to create a file on disk that has a "bad filename" (wouldn't the OS object when the file was being created)?

Is there an easy way to determine the name of the offending file?


I guess that if the function is described as deprecated, it's for a good reason.

Maybe some difficulties with the unicode encoding used by the main system.

Yvan KOENIG (VALLAURIS, France) lundi 7 février 2011 15:35:42



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >error number -37 from list folder command (From: Jim Brandt <email@hidden>)

  • Prev by Date: error number -37 from list folder command
  • Next by Date: Re: error number -37 from list folder command
  • Previous by thread: error number -37 from list folder command
  • Next by thread: Re: error number -37 from list folder command
  • Index(es):
    • Date
    • Thread