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 23:27:58 +0200
>
At 10:08 pm +0200 24/4/03, julifos wrote:
>
>
> Anyway (and I think this is a little off-thopic), I'd like to know the
>
> _real_ differences (appart from verbosity) between your line:
>
>
>
> set _container to "" & text items 1 thru -2 of f & ":"
>
>
>
> And the mine:
>
>
>
> set folder_ to text items 1 thru -2 of (thisFile as text) & "" as text
>
>
Paul has already pointed out that adding "" to the end of a string is
>
perfectly pointless and ineffectual.
If you analize the code, you'll see that "" is the difference between
"path:to:folder" & "path:to:folder:", which is an essential difference when
I must concatenate such string in order to compose a final path:
alias "path:to:folder" is equal to alias "path:to:folder:"
--> but
alias "path:to:folderfile" is not equal to alias "path:to:folder:file"
>
If you convert the alias to a string right at the beginning you don't
>
need to kepp on converting it in every line.
I can't see great differences, nor on usability nor on speed execution.
Your debugging is cool, but you don't know the entire code. My main
preoccupation is still about the related error "text items 1 thru -2".
Anyway, thanks for your help!
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.