| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I want to write an application that behaves like a normal Applescript: running straight through from beginning to end (possibly with dialog boxes along the way) and then quitting when done. (I can't just use an Applescript, because I need user defaults and pretty complicated dialog boxes and a few other advanced features that are available only in AppleScript Studio apps.)
What's the best way to do this?
I tried just running the script from main(), but the app spewed errors whenever I tried anything more than the usual AppleScript stuff. (For example, when I tried to use "user defaults".) I presume there's some initialization that happens when I call NSApplicationMain() that I'm not getting. I'm also concerned that without an event loop, my dialogs might not work correctly (I haven't tried throwing up a dialog box from the nib yet). So should I call NSApplicationMain()? Then how do I get run-straight-though-and-quit behavior?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden
This email sent to email@hidden
_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden This email sent to email@hidden
| References: | |
| >Running straight through, like a normal Applescript (From: Derrick Bass <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.