A couple questions regarding Project Builder (and 1 on AS Studio)

simX

Unofficial Mac Genius
I posted these to the AS Studio mailing list and am still waiting for an answer, so I though I might as well post them here for anyone to help me with:

1 - NOT AS STUDIO SPECIFIC) I wanted to add a few sounds to my project. I figured out how to load and play them in my project perfectly. There's just one slight problem. The only format that works for sounds is if they are in .aiff format, and if they are encoded at 22.05 kHz and at 16 bits in stereo. If they aren't in .aiff format, they won't play/be recognized at all, and if they are not encoded at 22.05 kHz and at 16 bits in stereo, they sound really loud and have some static over them.

Is anyone else having these problems? The problem with this format is that my sound files are unnecessarily large. I only need them to be encoded in mono format, at 11 kHz, and in 8 bit format. I don't want to make my app unnecessarily large?

Is there a workaround, or is this a bug?

--------------------

2 - NOT AS STUDIO SPECIFIC) I'm trying to assign the
(semi-standard) key combo Command-; (that's Command-semicolon) to open my preferences window. It's supposed to be as simple as going into Interface Builder and assigning the semicolon as the key that opens the preferences window (of course, when pressed in tandem w/ the command key). The problem is, I do that, but the application doesn't put the Command-semicolon into the app, and it doesn't work at all. All other combinations (like Command-Shift-P) work perfectly. Is there a specific problem with Command-semicolon?

---------------------

3 - NOT AS STUDIO SPECIFIC) How would I add help files to my application? I want the user to be able to press Command-? (the default command key combo for accessing the app's help files via Help Viewer), and have the Help Viewer open up and display help files/documentation. How would I do this, and what format do the help files have to be in?

----------------------

4 - AS STUDIO SPECIFIC) I'm trying to use the XML preferences commands built-in to AppleScript 1.8.2b3 to set my preferences (you know, the "set contents of default entry "UpdateNumber" of user defaults to updatenumber" thing).

The problem is, it doesn't seem like the user defaults get changed when I do something like:

set contents of default entry "UpdateNumber" of user defaults to
updatenumber

Often it just stays at its former value. Also, if I have AppleScript get the value of the user defaults directly after setting it to a different value or creating a new entry in the user defaults, the script often chokes and says it cannot get the value.

Is anybody else having these problems?
 
Back
Top