• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Class Twidling Doesn't Work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Class Twidling Doesn't Work?
      • From: Mr Tea <email@hidden>
  • Prev by Date: Scripting Acrobat?
  • Next by Date: Re: It's own C compiler
  • Previous by thread: Scripting Acrobat?
  • Next by thread: Re: Class Twidling Doesn't Work?
  • Index(es):
    • Date
    • Thread