dougscripts.com

AppleScript

January 11 2007 - 3:56 pm

-192 Error...the Finale

Well, I think this thing is nailed.

For those of you who have not been following along: several users have contacted me about a rare "Could not run this script because the required resources were not found. -192" error. This thing is so rare I have probably only seen it once or twice myself in my years of scripting. Here's the problem: my new "Installer" script that accompanies the latest .dmg download packages does not (currently) correctly copy AppleScript Studio apps. Some downloads use the "ProgBar" app, for example. In some download packages, the "ProgBar" app bundle is not completely copied; only its "Contents" folder is copied to your iTunes Scripts folder. This is totally fixable.

But here's the weird thing: when a folder named "Contents" is in your [username]/Library/iTunes/Scripts folder it somehow inhibits other scripts from running correctly.

What will happen is that when you run a script you will see its Splash Screen. None of the scripts from this site have been saved with this option. When you click the Run button, the -192 error appears.

Remove the "Contents" folder from your iTunes Scripts folder and the scripts will run correctly.

Here's what's weirder: create an empty folder named "Contents" in your iTunes Scripts folder and the same error occurs!

I am now updating the "Installer" script to handle AppleScript Studio apps correctly, and then this problem should disappear. If you are experiencing the -192 error, go to your [username]/Library/iTunes/Scripts folder and remove the folder name "Contents". In a few days, downloads which contain an AppleScript Studio application can be re-downloaded and re-installed correctly.

My sincere thanks to Correspondent Christian who figured out the "Contents" folder weirdness.

January 10 2007 - 3:58 pm

-192 Error Update

As I mentioned earlier, some users of my scripts are getting a "Could not run this script because the required resources were not found. -192" error. I originaly thought this was happening on Intel Macs only, but I received this from a Correspondent last night:

Here's my story: I downloaded some scripts from your site the past few days, and on my Powerbook (G4) with OS 10.3.9 and iTunes 6, several scripts give the same error you mentioned above, when launched from the script menu or by doubleclicking the script in the iTunes Scripts folder. But when I doubleclick the originally downloaded script directly, they all work! So I experimented a bit more: move script out of the scripts folder: it works (except it doesn't show in the script menu, obviously), move it back in, it doesn't work. I don't know enough of this to research it any further, but maybe this is a useful lead.

So, it appears that there is a problem with the Scripts folder?

January 9 2007 - 3:59 pm

NEW: Search Wikipedia

Search Wikipedia performs a "Go" search of Wikipedia in your default browser using the Album, Artist, or Composer tag of the single selected or currently playing iTunes track. Wikipedia entries often contain album art, artist photos, and, of course, sundry information, discography, and esoteric factoids for artists, albums, and composers.

January 8 2007 - 4:00 pm

Required Resources Error -192

Lately, I have been getting an unusual number of emails from users who are receiving a "Could not run this script because the required resources were not found. -192" error. According to Apple's Error Numbers and Error Messages: Operating System Errors page, this is an operating system error which "occurs when AppleScript or an application requests services from the Mac OS. They are rare, and more important, there's usually nothing you can do about them in a script." This means that the script can't do much to work around the error. However, I am concerned because I am seeing this error reported much more frequently now than I ever have before.

It also appears that users with Intel Macs are getting the error. The error happens with a wide variety of scripts, many of which have been quite reliable in the past, so it is difficult to pinpoint what the problem may be.

I have posted this query at Macscripter's forum hoping that others may have seen this. If you are getting this error I would be interested in hearing from you.

January 4 2007 - 4:01 pm

NEW: Batch Trim Start or Stop Time (Seconds)

Correspondent Chris Habig submitted a script which trimmed :15 seconds from the start of selected tracks (he wanted to skip over superfluous material from the beginning of a few podcasts). I added a routine that allows the user to enter any number of seconds, and another that allowed those seconds to be used as the new Start Time or to be subtracted from the Stop Time. Result: Batch Trim Start or Stop Time (Seconds).

January 2 2007 - 4:01 pm

Apple's AppleScripts for iTunes

Apple's AppleScripts for iTunes are dismally out of date. I do not believe these scripts have been updated since iTunes 2.0.3 (which was released December 14, 2001)! While they contain some useful routines, many of them are hampered by a subroutine that calls Internet Explorer--whatever that is. Far be it from me to alter these scripts, but perhaps I should put together a matrix that correlates Apple's Ancient AppleScripts with modern ones from this site?

Site contents © 2001 - 2024 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Privacy.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
The one who says "it cannot be done" should not be interrupting the one who is doing it.