Is "set volume" broken in Tiger?

Simple script:

set volume output volume 25

gets me the error: Can’t make current application into type small real.

Used to work in Panther. Just upgraded to Tiger. What’s up?

Works for me in Tiger, Kevin. (10.4.7)

this works for me also in tiger…

set volume 7

Works fine for me too.

Edit: Pidge1, that format is deprecated since OS X v10.3.5.

Model: Mac mini
AppleScript: 1.10.7
Browser: Safari 2.0.4 (419.3)
Operating System: Mac OS X (10.4)

Hi Bruce

It still works though?

(For How Long Though??)

If you need backward compatibility, sure.

Well, you know what THAT means, then…REPAIR PERMISSIONS! (when stuff gets weird). I’ll try that and see if it goes away…

This is very strange. I’ve repaired permissions and rebooted and still get the same error. Is it possible that my Standard Additions is damaged? If it is, how do I go about fixing it?

Has anyone run into anything like this before?

You could try using Pacifist to reinstall the osax from your install disc.

Thanks for the help, Bruce! So far, I’ve re-run the 10.4.7 Combo updater (no effect), then tried replacing the Standard Additions OSAX with Pacifist. After I replaced the OSAX, I now get a different error in another script (and still get the original error, as well).

I have a simple “thought for the day” script that uses do shell script to run /sw/bin/fortune. Here’s the script:

set myText to do shell script "/sw/bin/fortune"
display dialog myText

When I try to run it, it returns an error dialog: An error of type -10960 has occurred. I can’t find that error code anywhere, but it is in the “Application Scripting Error” range (10,000’s).

I’m really stumped. What on earth is going on? I’m wondering if I should perhaps do a reinstall of Tiger, but use the “clean install” option and just save the user accounts.

I would definately try that.

Try creating another user account if you don’t have one, and then use the Script Editor to run your script from there. Just a check to see that it isn’t something peculiar to your account.

Well, I have another user account that exists on the system and tried it - same problem. So I re-installed Tiger (using “archive and install”). However, the problem still persists.

I created a new user account - the problem doesn’t exist for the new account!

Does anyone know what preference files or other items in the Library folder I can trash that might fix the problem for my old account?

I can port all my files to the new account, if I have to, but don’t relish the thought of having to move my address book, my bookmarks, my keychain items, and my mail to the new account.

Maybe your /Library/Preferences/com.apple.soundpref.plist is screwed up.

This is what mine looks like:

That wouldn’t surprise me. When I re-installed Tiger and deleted the “previous system” folder, I got back a whopping 7GB, so something was terribly wrong in there somewhere.

I’m abandoning the old user account. I’m in the process of moving all my stuff into a new user account (minus all the old prefs, that should keep the new account clean) and then I’ll delete the old account.

So far I’ve managed to use the backup functions of Address Book, ICal & Safari to restore my data from those apps (just do a back up in the old account, take possession of everything those backups create, then do a “restore from backup” - it’s a hack, but it works).

The worst of the imports is done. I found a script that writes the keychain values to a text file, so I’ve got that so I can lookup all my passwords.

Just goes to show you - ALL computers have problems. Macs aren’t immune, it’s just less-common on a Mac.

Thanks for the ideas, guys. I appreciate the help! :slight_smile:

Model: iMac DV+ named “Kermit” (450mhz, 384mb)
AppleScript: 1.10
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

OK, NOW I’M REALLY **&&*^^%ED!

You know it was working on the new account, right? Well, I’ve been moving all my stuff to the new account, and when I moved my scripts, I thought, “I should check and see if that command still works.” It doesn’t.

I haven’t changed any of the prefs of the new account. The only software I re-installed was my Logitech mouse driver. I’m going to uninstall it and see if that is what is messing up the works.

SHEESH! :mad:

Instead of going through the process of transitioning your files across, I personally would just delete the Preferences folder in your home library, ideally from another user’s account. But if you feel it’s going to give you a better result (which is fine IMO), the library folders for Safari, iCal, Address Book, etc. should be able to be simply copied straight from the old to the new account hiccup free.

BTW, for a bit of irony, the only topic I could find on this forum about the error was this one. :wink:

Qwerty, that’s TOO ironic! :wink:

Yes, I’ve ported Library items before, but since I suspected that this was due to some Library file polluting the old account, I opted not to do that. It’s moot anyway, since I’ve now moved everything to the new account and don’t feel like moving back.

I posted this over on Apple’s Tiger discussions, but I doubt anything will come of it. I can’t for the life of me figure out what could be causing this problem. I don’t have a lot of extensions, I have no OSAX’s other than Apple’s, and haven’t installed anything other than the Logitech driver (which I have subsequently removed - the mouse works fine without it, I can’t see any benefit of having it installed).

I’m stumped, seriously stumped. If anyone else can reproduce the “type small real” error (the -10960 error went away with the new system install), please post something. I just can’t understand this at all.

And the weirdness just keeps on comin’…

I went into System Prefs and turned off Universal Access (which gets switched on when you turn on GUI Scripting) and turned off the Sound option “play feeback when volume is changed.” Altering these two options allowed the Script Editor to run the volume script without a problem. So I saved the scripts and the work fine from the script menu.

But…

After a reboot (because I downloaded the latest security update)…the Script Editor now reports the error again, BUT THE SCRIPT MENU SCRIPTS WORK.

I give up. I think my Mac resides partially in the Twilight Zone…:rolleyes:

I guess giving up was the key. I installed the XCode 2.4 update and after a restart, now all is right with my world. No more volume contol errors.

Weird. Very weird.