Re: whose name contains space
Re: whose name contains space
- Subject: Re: whose name contains space
- From: Nigel Garvey <email@hidden>
- Date: Wed, 24 Jan 2001 01:24:10 +0000
Emmanuel wrote on Tue, 23 Jan 2001 15:33:45 +0100:
>
Here (OS904AS143SE143) this works:
>
>
-------------------------
>
tell application "Finder" to get first item whose name contains " "
>
-------------------------
>
>
while this does not:
>
>
-------------------------
>
tell application "Finder" to get first item whose name contains space
>
-------------------------
>
--> Impossible d'obtenir name whose it contains " ". Acchs non autorisi.
>
(Can't get name whose it contains " ". Access not allowed.)
>
>
Same with tab, but not with return.
>
>
The bug is not Finder-specific: it's an AppleScript issue.
>
>
Any comment (AS155 etc.) ?
It's the same with OS86AS137SE113. I thought it might be a reference
issue, but it seems to me a 'tell' one. This works:
tell application "Finder" to get first item whose name contains my space
This returns an empty list:
tell application "Finder" to get first item whose name contains its
space
This caused the Finder to quit:
tell application "Finder" to get first item whose name contains space
of application "Finder"
This crashed Script Editor:
tell application "Finder" to get first item whose name contains
(application "Script Editor")'s space
This doesn't work:
space
tell application "Finder" to get first item whose name contains the
result
This does:
space
tell application "Finder" to get first item whose name contains my
result
So does this:
tell application "Finder"
space
get first item whose name contains my result
end tell
Same with tab. Return doesn't actually *work*; it simply doesn't produce
a result.