Access rights

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Access rights

Re: Access rights

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

:lol: (sorry, but it's funny)

Re: Access rights

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.

Re: Access rights

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.

Re: Access rights

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

Access rights

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

Top