Re: Long Filenames >31 error -37
Re: Long Filenames >31 error -37
- Subject: Re: Long Filenames >31 error -37
- From: Emmanuel <email@hidden>
- Date: Sun, 18 Jul 2004 10:13:21 +0200
At 7:06 AM +0200 18/07/04, Ronald Hofmann wrote:
>
Hi everybody,
>
in one of my methods Im dealing with filenames. As soon as I come across a long filename (>31) like:
>
"MacOSX:Users:ronny:Desktop:Doks:Dido - Thank You (Thunders3233.mp3"
>
>
I get an error:
>
Bad name for file. MacOSX:Users:ronny:Desktop:Doks:Dido - Thank You (Thunders3233.mp3 (-37)
>
>
As far as I know the Finder can handle filenames longer than 31. What can I do? Any ideas?
>
>
Is there a error code table somewhere to look up error codes?
If you use Smile, pull down User scripts > More menu bar > Scripting > Error information.
-37 is bad name for a file and nothing else (documented with the additional optimistic comment "/*there may be no bad names in the final system!*/").
Isn't your instruction inside some "tell app" wrapper?
Emmanuel
_______________________________________________
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.