| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| I want to thank everyone for helping me with my enumeration problem including the tips on the utilities. I would like to trouble you for one more piece of assistance. I do not do so lightly--I have spent several hours trying to find the cause for this problem. I am working on implementing applescript into my Cocoa application which is in development and I have it successfully getting and setting properties of the main objects (orders). I have also successfully implemented the core "make" command with properties which is very handy for having FileMaker create new objects in my app. But I am being stumped by what seems like it ought to me such a simple script. First, this works: tell application "Scheduler" activate set orderNumber to "24777" customer name of first scheduled order whose id is orderNumber end tell It returns the name of the customer. But this next script fails with "Scheduler got an error: Can't make customer name of <<class >> 12 into type reference. Here is the script: tell application "Scheduler" activate set orderNumber to "24777" set myOrder to first scheduled order whose id is orderNumber customer name of myOrder end tell For the life of me, I can't figure out why it fails when I try to use the variable myOrder. I am concerned that in the error message the <<class >> part seems to have a blank class. That does not make sense to me but I don't know where to look. I have posted my .sdef to this handy code review site: |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-implementors mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-implementors/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.