Re: move folder & copy image ? (newbie)
Re: move folder & copy image ? (newbie)
- Subject: Re: move folder & copy image ? (newbie)
- From: Nigel Garvey <email@hidden>
- Date: Thu, 9 Aug 2001 01:44:47 +0100
Andy Wylie wrote on Thu, 09 Aug 2001 00:47:05 +1200:
>
try
>
set nigel to {"straight"}
nigel's class is not real
--> true
>
copy {"looney"} to obfuscation
>
if obfuscation's alias "" of it < nigel's it's alias "" then
>
set nigel's alias "" to it of obfuscation's alias "" of it
>
end if
>
tell nigel
>
copy (a reference to {"you ? "} & no) to end of it
>
tell ((alias "" of it of nigel)'s obfuscation's it's alias "") to
>
"stop it!"
>
end tell
>
on error m number n
>
error {nigel, m, me, my | moonie wedding photos |'s alias ":-)"}
>
end try
I've been amusing myself trying to deobfuscate this tonight. It relies
mostly on different arrangements of:
alias "" of it of {"A list of one string"}
The 'it' is superfluous here, so the formula boils down to:
alias "" of {"A list of one string"}
This also works on my 8.6 and 9.0.4 systems as:
alias 0 of {"A list of one string"}
... which suggests that the "" is being coerced to a number (0) and that
the script exploits a bug that I thought had been fixed in 9.1. As with
my 'middle Wednesday' suggestion last year, if there's no item of the
specified class in the list, trying to access the 0th such item returns
the first item in the list, regardless of what that might be. The
following expressions also work in the script for me:
0th Wednesday in nigel
window "" of obfuscation
nigel's middle class
obfuscation's number 0
I'd be interested to know if Andy's script works with later versions of
AppleScript. (It's supposed to return a witty and pertinent error
message.)
NG