Access rights

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

fishypops
Posts: 5
Joined: Sun May 24, 2009 3:16 pm

Access rights

Post by fishypops » Sat Jun 11, 2011 9:35 am

Stupidly I executed the script "Swap Artist and Title", in error.

So, I have tried to write a script to partially undo, what I did. (the script is below - it could do with a check).

But the real problem that I have is that MM can't execute "File XXX.vbs cannot be opened; the file is unavailable or you may not have permission to access it"

I am signed in as an administrator, I launched MM as administrator.

What have I done wrong /



Script:
' A simple script that copies the Artist to the tite field of selected tracks

Sub CopyArtist_Title
' Define variables
Dim list, itm, i, tmp

' Get list of selected tracks from MediaMonkey
Set list = SDB.SelectedSongList
If list.count=0 Then
Set list = SDB.AllVisibleSongList
End If

' Process all selected tracks
For i=0 To list.count-1
Set itm = list.Item(i)

' copy the fields

itm.Title = itm.ArtistName


' Update the changes in DB
itm.UpdateDB
Next
End Sub

nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: Access rights

Post by nynaevelan » Sat Jun 11, 2011 9:37 am

Not sure about your script but you can use the Switch or Copy script to switch your data back.

nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files

nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: Access rights

Post by nohitter151 » Sat Jun 11, 2011 9:47 am

fishypops wrote:Stupidly I executed the script "Swap Artist and Title", in error.
Why write a new script? Just run the same script again, it will switch them back.
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.

nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: Access rights

Post by nynaevelan » Sat Jun 11, 2011 9:58 am

nohitter151 wrote:
fishypops wrote:Stupidly I executed the script "Swap Artist and Title", in error.
Why write a new script? Just run the same script again, it will switch them back.
lol I didn't think of that.
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files

Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm
Location: Belgium
Contact:

Re: Access rights

Post by Steegy » Sat Jun 18, 2011 7:09 am

:lol: (sorry, but it's funny)
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).

Post Reply