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 20:40:41 +0200
>
> 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
--> one reply
>
This would error if thisFile has only one text item.
--> another reply
>
maybe your problem is not with the text item delimiters but with the
>
files that your script should open.
>
>
Have you checked if the expression (thisFile as text) really
>
evaluates to some string containing a ":"? The error message you get
>
will also show if the delimiter you look for is not present.
Since the file comes from a drag&drop operation, I can't concibe that the
following expression evaluates to true:
(thisFile as text) does not contain ":"
I know that:
thisFile --> item 1 of {alias "path:to:file"}
Instead of
thisFile --> alias "path:to:file"
But
(thisFile as text) --> will still throw "path:to:file"
The problem is that it worked in the past and now it doesn't work. The code
hasn't changed, the code still work for most of people, the code doesn't
work for 2 users and the only apparent nexus between them is:
A) The same error.
B) It worked yesterday. After upgrading to OS 10.2.5, it doesn't work.
C) Conflicts with other AS-based applications.
(I can't confirm this personally, since this code works OK for me)
Thanks for all your replies!
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.