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: julifos <email@hidden>
- Date: Thu, 24 Apr 2003 18:33:31 +0200
>
At 5:51 pm +0200 24/4/03, julifos wrote:
>
>
> So, do you think OS 10.2.5 upgrade or some special circumstance can cause
>
> this code to throw an error such as
>
>>> Can't get text items 1 thru -2 of "path:to:file" <<?
>
>
>
> I can't test it, but I'm nearly sure that both <TIDs> and <AS's TIDs> will
>
> throw this error... Or not? (to be or not to be ;-)
>
>
Your people are almost certainly asking the script to do something
>
impossible. I have heard no discussion of any bug on the list and
>
have experienced none.
>
>
Let them send you a copy of the script AND of the output in the Event
>
Viewer. It will be easy to discover what they are doing wrong -- and
>
they are certainly doing something wrong.
>
>
JD
Perhaps I should explain this better.
The script doing something wrong is MY script. And some users (2 users at
this moment) of my script have experimented this error since they upgraded
their OS. So, "before upgrade = works cool"; "after upgrade = something is
wrong" (with my script and other applescript-based apps; 1 user mentioned
errors with split&concat, which is an AppleScript Studio app).
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
--> <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!!!
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?...
JJ
_______________________________________________
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.