Re: AppleScript TID bug OS 10.2.5?
Re: AppleScript TID bug OS 10.2.5?
- Subject: Re: AppleScript TID bug OS 10.2.5?
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 24 Apr 2003 10:52:43 -0700
On 4/24/03 9:33 AM, "julifos" <email@hidden> wrote:
>
I posted the code before, but I'll post it again for better exposition:
>
>
#################################
>
on open these_files
>
>
--> <snip>
>
--> test "these_files" to make sure user dropped only 1 file
>
>
set thisFile to these_files's item 1
an alias
>
>
--> <snip>
>
--> more unrelated stuff
>
>
set AppleScript's text item delimiters to ":"
>
set folder_ to text items 1 thru -2 of (thisFile as text) & "" as text
>
--> ERROR!!!
That is an extremely weird line of code. Why in the world are you adding ""
to the end of it?
If this is supposed to be a folder's path, why haven't you added ":" to the
end of it?
(I don't suppose this is related to the error, but you never know.)
And why all those extra 'as text's?
Do you have accents in any folder of the file path? Have you tried 'as
Unicode text' instead of 'as text'? (In this case, set your TIDs to {":" as
Unicode text}.)
>
set file_ to text item -1 of (thisFile as text)
>
set AppleScript's text item delimiters to {""}
>
--> <snip>
>
end open
>
#################################
>
>
So, this code has been working OK for some time, but now there are some
>
problem... Perhaps anything about repair permissions, momentary bad luck?...
--
Paul Berkowitz
_______________________________________________
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.