Re: Long Filenames >31 error -37
Re: Long Filenames >31 error -37
- Subject: Re: Long Filenames >31 error -37
- From: Michael Vogt <email@hidden>
- Date: Mon, 19 Jul 2004 07:09:58 -0500
On Jul 19, 2004, at 12:00 AM, email@hidden
wrote:
Date: Sun, 18 Jul 2004 10:13:21 +0200
To: AppleScript Users <email@hidden>
From: Emmanuel <email@hidden>
Subject: Re: Long Filenames >31 error -37
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
Makes me think there's a character in the file name that AppleScript
doesn't like. I would try:
1. Retyping the name of the file in the finder in case there are any
invisible characters.
2. Start eliminating non-alphabet characters: '(' or '-'.
Mike
_______________________________________________
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.