Posted: Sun Feb 24, 2008 8:39 am
Yes. The Swap Two Fields script works for me from all locations (my 3 sub-menus plus the original Tools/Scripts menu). I'll look into it today to see if I can see anything that might cause the problems.
The Music Manager for Serious Collectors
http://www.mediamonkey.com/forum/
Just to make sure my 'puter is not doing wacky things again, can you install the Switch or Copy, Swap Two Fields and your script to see if you get the same error?onenonymous wrote:Thanks - I loaded SOC and it does work on my system (I did need to add the replace code for Script.ScriptPath piece in SOC. I'll give this a while for other comments, then update the code in my original post.
Anyone else having any errors?
I must be overlooking something. Which section is this? I don't see anything noted in the code.onenonymous wrote:Code: Select all
' 2) Save the section noted below in a separate file ' named PopMenuScriptsHelper.vbs, also in the Scripts\Auto directory
Those who simply follow your instructions will get incorrect operation. I think you mean to mark this as "an example" and give similar reference as you did in a message in this thread.onenonymous wrote: ' 4) If you receive the above error you will have to edit that other script to make it compatible with this one. To do so:
' a) Exit MM
' b) Open the other script in an editor such as notepad
' c) Add the lines below(without the ' mark) at the beginning of the scripts
' after "Option Explicit" (if it exists) but before the first Sub or Function
' d) Search for every instance of Script.ScriptPath and replace it with sPath
' e) Save the file, making sure it still has the .vbs extension.
'
' ###########################################
' Add the 2 lines below to other scripts that error when used under right-click
' Be sure to remove the ' at the beginning of the line
'###########################################
' Dim sPath
' sPath = sdb.ApplicationPath & "Scripts\Case.vbs"
'###########################################
' End of add code to other scripts
'###########################################
[/code]
Bob:bob61 wrote:I must be overlooking something. Which section is this? I don't see anything noted in the code.onenonymous wrote:Code: Select all
' 2) Save the section noted below in a separate file ' named PopMenuScriptsHelper.vbs, also in the Scripts\Auto directory
Bubblesort is a routine in my code - it's the last sub. It runs automically. If you'd rather not do the sort, then you could comment out the line:nynaevelan wrote:Although I already have my scripts sorted alphabetically via the scripts.ini file, how would I use the bubblesort option and where is it?

Code: Select all
sPath = SDB.ApplicationPath&Scripts\Case.vbs"Hmm... okay. Well, I just followed the instructions from this post and copied and pasted the little bit of code that pertained to the Case Checker script. I guess that bit is incorrect.trixmoto wrote:This means that on line 39 you are either missing a double quote (") character, possibly at the end of the line, or it could mean that you don't have an ampersand (&) between the "SDB.ApplicationPath" and the "Scripts\Case.vbs". Either way, try making it...Code: Select all
sPath = SDB.ApplicationPath&"Scripts\Case.vbs"