Class Twidling Doesn't Work?
Class Twidling Doesn't Work?
- Subject: Class Twidling Doesn't Work?
- From: email@hidden
- Date: Tue, 6 Aug 2002 13:52:47 -0700
So now I can break apart records and write them to file. However, my record
is misbehaving!
I'm trying to do this:
tell application "Finder"
set volInfo to properties of disk "Smurfette"
end tell
do(volInfo)
to do(a)
log a
end do
But I keep getting this:
Can't make <<class cdis>> "Smurfette" of application "Finder" into
the expected type.
So I figured AS wasn't doing the coersion for me. So I did this:
tell application "Finder"
set volInfo to properties of disk "Smurfette"
set class of volInfo to record
end tell
do(volInfo)
to do(a)
log class of a
log a
end do
But I still get the exact same error on "log a", even though "log class of
a" reports that a is a record.
So is the object's class different from it's actual class that it works
with? This seems very odd behavior to me. Can anyone help?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Seth A. Roby
Scriptwriter Intern
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
_______________________________________________
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.