Change preference from script

Hi! I want to know how i can change preferences from the VB scripts? If there is a command from the ituneslib library for do this? or how i can change value into iTunesPrefs.xml file?
thanks for the help

The iTunes SDK does not provide any functions to change preferences. You could try doing it using SendKey() to send keypresses, or using something like AutoIT to do keystrokes and mouse clicks... but that requires you to run iTunes in each account that needs its preferences changed.
I have done some direct updates to preferences by editing the preferences XML, but it isn't fun because it isn't documented anywhere that I can find. Once you find the right byte/bit to update in the preferences, it isn't a big deal, but find the right one is a pain.
Also, when Apple updates iTunes you have to reevaluate your script to see if it is still changing the right thing in the preferences file.
If you want to see an example of updating the prefernces file directly, you can download my script package:
http://home.comcast.net/~teridon73/itunesscripts/index.html
The perl source code is included. Look at itunespreferencesfix.pl. Or here's a direct link to a version that works by itself (without the rest of my package):
http://home.comcast.net/~teridon73/itunesscripts/itunespreferencesfix.txt
Forum TOS disclaimer: I may receive financial compensation for my link or recommendation (there is a PayPal donation button on my web page).
HTH,
Rob

Similar Messages

  • Changing preferences from CS4 to CS5?

    At work my company has Master Collection CS4 installed and Master Collection CS5 also installed. I need to figure out how to make it recognize that CS5 is my default. Whenever I open a PSD it always opens in CS4. I don't see anywhere inside Photoshop to change the settings there and even using the option to choose a new defualt program to open file returns CS4. So even going in, manually selecting the CS5 folder and that Photoshop.exe does nothing.
    I can open Photoshop CS5 and open files from within but it's really annoying in those situations where I'm already in the folder and just want to click the file and have it open.

    Hmmm. I tried that and all values are not set. I can't get CS4 to dissappear from the "Choose new program" list and I can't add CS5. Navigating within that section to the CS5 Photoshop.exe file does nothing. It's as if they both are called Photoshop.exe and despite different folders Windows thinks I'm trying to open the same thing it already has suggested.
    Looks like I'm going to have to uninstall CS4. I don't know why we have both instances but I don't think I will ever use CS4.

  • An error prevents the Change Management Upgrade script from executing

    I have Warehouse Builder 10g on a database 10g R1.
    On a server linux I have the repository, and on other server (Sun 5.9) I have runtimes for production.
    I want execute an upgrade deploy action on one object but I get this error:
    An error prevents the Change Management Upgrade script from executing successfully. We strongly advise that this Upgrade is UNDONE and the problem is investigated. Data loss may occur if you accept this Upgrade
    Any idea?
    Thanks,
    Fernando.

    I review the installation, it was made with a diferent user that database, I get same permission, restart runtimes service and problem was resolved.
    Fernando.

  • How to change preferences in calendar on ipad i.e want to change start day from sunday to monday like in icloud

    how do you change preferences in calendar on ipad i.e want to change start day from sunday to monday like in icloud

    AFAIK - and I'm pretty sure about this - you can't change the starting day of the week on the calendar on the iPad.

  • I have a game that will not install. company says I need to change preferences??? error is producer of game not known.  this game is from Game House, so it is legit

    I bought a game from Game House that wil not allow me to install because Apple does not know writer.  They say to change preferences.  How do I do that?  I have an Imac.
    Thanks,
    Curt

    Did you download Game House from the iTunes store?
     Cheers, Tom

  • On MacBook Pro, in iCloud cannot access Apple ID username to change it, from previous user. Can you help?

    On MacBook Pro, in iCloud I cannot access Apple ID username to change it, from previous user. Can anyone help?

    In System Preferences>iCloud: Sign Out, reboot and then Sign In with your ID and password.
    If Find My Mac is switched on you will be unable to sign out without the previous owners password.

  • Migration Assistant Copied System Preferences from a Third HD!

    I used Migration Assistant to copy files off an iMac and onto a new HD in a MacPro. I purchased a second HD for the MacPro especially for this occasion because I wanted to leave the original MacPro HD intact. At this point, I had two HD's in the MacPro. After installing Snow Leopard, Migration Assistant copied all files and users as expected but something very strange happened:
    1. iMac is 10.6.5 but new HD has 10.6
    2. System Preferences were taken from the existing HD in the MacPro
    I knew there was something wrong because the desktop image was from the original MacPro HD.
    What's more annoying is that I completely wiped the new HD using Disk First Aid and removed the original HD from the MacPro so I could start the entire migration process again. Before quitting Disk First Aid, I noticed that it said 800mb had been used even though I had zero'd out everything.
    Again, for the second attempt I decided to remove the original HD from the MacPro and just leave the new drive in there, but it did it again.
    1. Question - If I had assigned Migration Assistant to copy files from the iMac HD why did I end up with System Preferences from the original MacPro HD?
    2. Question - After completely removing the original MacPro HD from the machine, why did Migration Assistant set up the new HD with the System Preferences on an HD that I had completely removed from the machine?
    I know all I have to do is use Software Update to bring it back up to 10.6.5 but it's really annoyed me because now I am wondering about of all the 500 gigs and what files may have been affected (hopefully none). I've had a quick look through the contents but I won't be able to tell because there are so many of them. And do I really want to spend time digging around in the Library of the iMac to copy across the System Preferences to the new HD and then remove what shouldn't have been there in the first place? I don't think so, and I shouldn't have to.
    I do wish Apple would have their software do what it says and not go digging around on another HD that was lying dormant for this exercise, especially after removing it for the second attempt. It's wasting so much of my time.
    Any thoughts, opinions, excuses and remedies would be greatly welcomed.
    Thanks in advance.
    Message was edited by: inknpaper

    inknpaper wrote:
    I used Migration Assistant to copy files off an iMac and onto a new HD in a MacPro. I purchased a second HD for the MacPro especially for this occasion because I wanted to leave the original MacPro HD intact. At this point, I had two HD's in the MacPro. After installing Snow Leopard, Migration Assistant copied all files and users as expected but something very strange happened:
    You mean you installed OSX on the new drive. Apparently you used a 10.6.0 disc.
    Then, presumably, your Mac re-started (from the new disk), you set up a user account, then started +Migration Assistant.+
    Migration Assistant doesn't install or copy OSX; whatever version of OSX you put on that drive is still there.
    2. System Preferences were taken from the existing HD in the MacPro
    Extremely doubtful.
    You have an extra user account (the one you set up after installing OSX and before doing the Migration). Unless you changed it, that account will have the default desktop picture.
    Are you sure the account you transferred has a different desktop picture than it did on the iMac? If so, is it the default?
    What's more annoying is that I completely wiped the new HD using Disk First Aid and removed the original HD from the MacPro so I could start the entire migration process again. Before quitting Disk First Aid, I noticed that it said 800mb had been used even though I had zero'd out everything.
    Yes; that's the partition map and empty directories.
    1. Question - If I had assigned Migration Assistant to copy files from the iMac HD why did I end up with System Preferences from the original MacPro HD?
    As above, I don't think you did. Be sure which account you're logged-on to.
    For best results, start over, and use +Setup Assistant+ instead of +Migration Assistant,+ so you don't end up with extra accounts. See [Setting up a new Mac from an old one or its backups|http://web.me.com/pondini/AppleTips/Setup.html] (or use the link in *User Tips* at the top of this forum), and note the green box there.

  • How do i change my email id to be synced with i cloud.i basically changed over from yahoo to gmail after i created my apple id?

    how do i change my email id to be synced with i cloud.i basically changed over from yahoo to gmail after i created my apple id?

    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • Change over from a simple Xml call to a rpc-Http call ....

    Hi there,
    I need to change over from a simple Xml call:
    <mx:XML id="urlsGeneral" source="http://www.mySite.com//.../AFS.xml"/>
    to a rpc-Http call which is updating the readout if Xml is changed at any time.
    I forgot to mention the most important item yet a very simple one: I need this only to be displayed in a title etc, and NOT a datagrid or else example below.
    title="{urlsGeneral.urlGeneral.(@name==0).age}
    I tried a lot today, but just can't get it right as the id="urlsGeneral" is always the problem.
    Any help would be appriciated !!! Thanks in advance. regards aktell2007
    <urlsGeneral>
    <urlGeneral>
    <name>Jim</name>
    <age>32</age>
    </urlGeneral>
    <urlGeneral>
    <name>Jim</name>
    <age>32</age>
    </urlGeneral>
    </urlsGeneral>
    Another call:
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    public var myData:ArrayCollection;
    protected function myHttpService_resultHandler(event:ResultEvent):void {
    myData = event.result.urlsGeneral.urlGeneral;
    ]]>
    </mx:Script>
    <mx:HTTPService
    id="myHttpService"
    url="http://www.mySite.com//..../AFS.xml"
    result="myHttpService_resultHandler(event)"/>
    Preferable I wanted something like this to work:
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.FaultEvent;
    import mx.managers.CursorManager;
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.xml.SimpleXMLDecoder;
    // Don't use here as it is already used in .swc !
    /* import mx.rpc.http.HTTPService; */
    private var myHTTP:HTTPService;
    private function initConfigCall():void {
    myHTTP = new HTTPService();
    myHTTP.url = "com/assets/data/changesAppAIRPIOne001.xml";
    myHTTP.send();
    myHTTP.resultFormat = "xml";
    myHTTP.addEventListener(ResultEvent.RESULT, resultHandler);
    myHTTP.addEventListener(FaultEvent.FAULT, faultHandler);
    CursorManager.setBusyCursor();
    private function resultHandler(evt:ResultEvent):void {
    var xmlStr:String = evt.result.toString();
    var xmlDoc:XMLDocument = new XMLDocument(xmlStr);
    var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
    var resultObj:Object = decoder.decodeXML(xmlDoc);
    // Removed [0] on single node !
    appUpdateAvl.text = resultObj.application.configApp.appNewUpDate;
    appLastChanged.text = resultObj.application.configApp.appLastChanged;
    appChangedSections.text = resultObj.application.configApp.appChangedSections;
    CursorManager.removeBusyCursor();
    myHTTP.disconnect();
    private function faultHandler(event:mx.rpc.events.FaultEvent):void {
    var faultInfo:String="fault details: "+event.fault.faultDetail+"\n\n";
    faultInfo+="fault faultString: "+event.fault.faultString+"\n\n";
    mx.controls.Alert.show(faultInfo,"Fault Information");
    var eventInfo:String="event target: "+event.target+"\n\n";
    eventInfo+="event type: "+event.type+"\n\n";
    mx.controls.Alert.show(eventInfo,"Event Information");
    CursorManager.removeBusyCursor();
    myHTTP.disconnect();
    ]]>
    </mx:Script>

    Hi again,
    These days there are more quetions than answeres on any forum, and very seldom anybody shares the answer if they lucky enough to work it out so here is my answer for the above question
    Change over from a simple Xml call to a rpc-Http call ....
    I had it all along as a commend noted: // Removed [0] on single node !
    So instead of title="{urlsGeneral.urlGeneral.(@name==0).age} it would be now title="{resultObj.urlsGeneral.urlGeneral.[0].age} and now it works perfectly well. I hope that one or the other of you can use the answer and the code !!! regards aktell2007

  • How to change maintenance powershell script via GPO?

    Per suggestion reposted from here: http://social.technet.microsoft.com/Forums/windowsserver/en-US/6eece9d6-a524-48aa-8e64-7554f0ec9b31/how-to-change-maintenance-powershell-script-via-gpo?forum=winserverGP
    Posted at http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/desktop-shortcuts-to-items-on-network-drives/94eddb27-342b-40fc-9ad4-677ff4ee8ebe?page=9&tm=1403700614489 originally.
    There is a very annoying "feature" in Windows 7 called BrokenShortcuts.ps1 which is being called out weekly via maintenance task and if it finds more than 4 "broken" network shortcuts it removes them all. So it means if a user at this
    moment is disconnected from the network he will lose all links to shares, network applications sitting on his desktop. Funny that there was no such script on Vista and i don't see this on Win8. On the post i have attached one user suggested to edit this script
    and change 4 to 500 or whatever high number. That's fine for one time fix. But i need to do this for 200+ users. This file cannot be simply replaced by a script, so i'm wondering is there any way to do it via GPO?
    I have already tried various startup scripts, but i'm not sure which user to put into commands.
    I need to run this on startup:
    takeown /F C:\Windows\diagnostics\scheduled\Maintenance\TS_BrokenShortcuts.ps1
    icacls c:\windows\diagnostics\scheduled\maintenance\TS_BrokenShortcuts.ps1 /grant "some user":F
    copy \\share\folder$\TS_BrokenShortcuts.ps1 C:\Windows\diagnostics\scheduled\Maintenance\ /Y

    You need to take time to study how Windows does these things.  You can control them with GP which is what you asked.  The article shows you how to disable elements of the tasks.  Each task controls a script.  If you disable the task the
    script that deletes shortcuts will be stopped. Other maintenance tasks will continue to run.
    Most of your problem is that you seem to want someone to provide a magical solution.  In technology it is necessary to fully research your issues until you understand all aspects.  After fully studying the issue you should understand the possible
    solutions if they exist.
    You claim to have deployed the patch that Microsoft released to fix the issue.  You claim it didn't work.  If that is the case then you need to call MS and \p[en a support incident.  If  Microsoft determines that you are right about the
    patch not working you will not be charged for the call.
    I know that learning how to support technology is hard and frustrating for newcomers.  In time, by using these incidents to learn, you will become a seasoned technician and all of this will seem trivial.  Until then we can only suggest that you
    do things that most of us are familiar with.  We cannot fix your network for you.
    I think you haven't really posted in the GP forum but posted a question about GP in the server forum.  Try posting in the GP forum.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP
    Here is one answer from the GP forum:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/600ca14f-8b1b-400c-b27f-a7f5733407ac/windows-scheduled-maintenance-task?forum=winserverGP
    ¯\_(ツ)_/¯

  • Calling java from scripting

    Hello,
    I would like to integrate some scripting capability in my web application.
    The main purpose is to cover the following scenario :
    - I develop a web app with JSP technology, packaged in a MyAPP.WAR file containing my application and another file (MyCustomer.RAR?) containing installation specific informations. I want the MyApp.WAR to be the same for all my customers, just having the RAR file specific to each customer (installation).
    - In this ressource file, there could be some scripting functions that will be called from my JSP Pages to change the default presentation with some customer particular informations.
    Those informations would be extracted from my java data model. The purpose is to enable the customer to code some little script, and to avoid coding those in Java.
    The question I have on that are :
    1/ is it possible to call java instances from scripting language (I read on apache that the answer was yes for some of them), but I would like to know if javascript can do that.
    2/ Can I recover the "result" of the script in JSP ?
    An example :
    1/ The class containing a marvellous property
    class MyClass {
    public String myProperty;
    2/ The JSP page :
    <stlLib:callScript(Customer.RAR, "ScriptToCall",anInstance) />
    <stlLib:getResult ???>
    3/ A user script (pseudo-code)
    Customer 1 :
    Function ScriptToCall(object) {
    variable iwanttoshowsquareroot;
    iwanttoshowsquareroot = squareroot(object.myProperty);
    return iwanttoshowsquareroot ;
    Customer 2 :
    Function ScriptToCall(object) {
    variable mychoiceisdifferent;
    mychoiceisdifferent= object.myProperty / 2;
    return mychoiceisdifferent;
    According to what ScriptToCall looks like the result on page would be different
    Thanks in advance for your advises
    Olivier.

    1) The script will be running in the browser, not the server, yes? So in Netscape you can load Java objects via Javascript, but IE doesn't seem to support this. Although in either, you can call methods on an applet in the page. But you can't call a JS function from the Java code in the JSP page, since that is only executed on the server.
    2) Only if the "result" is submitted back to the server.

  • [JS] Open from scripting specific paragraphStyle palette

    Hi!
    Can I open the InDesign palette of a specific paragraphStyle from script JS, for managing properties of style?
    Thanks!

    I'm thinking that what you're thinking that he's thinking is not entirely correct. You are correct in that you don't need to open the dialog to change anything there, but I think that he doesn't want to change anything by script (probably because he thinks he can't do that) -- he just wants one of us to do a script that opens the Paragraph Style Options dialog.
    It looks as though you were right, by the way. This:
    // the "Style Options" item in the par. st. panel
    app.menuActions[172].invoke();
    produces this error: "The requested action opened an asynchronous previewable modal dialog. This is not compatible with the scripting architecture, and so the dialog has been automatically dismissed using the default button."
    But maybe we should wait and see what Leonardo really thinks!
    Peter

  • Moving preferences from local to domain account

    I've been given the task of adding a handful of Macs to an AD domain. So far I've added 2 with no issues.
    My problem is this: all of the Macs have been in use for months or more and have local accounts on them. I'm looking for a way to bring my users application, browser, and OS preferences from the local accounts of my users into their new domain accounts using the least administrative effort. I'm assuming that this will be as simple as copying parts of the users library over, but am unsure if this is the best way to go about it or what specific folders need to be copied.
    I was also asked (and I think the answer to this is no) whether or not a local account can simply be changed into a domain account.
    Models are MacBook Pros, iMacs, and I believe 1 Macbook Air. All are Intel. If there is any more info that I can provide let me know.
    Any help or advice would be greatly appreciated.

    You can delete the AD profile, rename the local profile as the AD profile, then change the owner of the profile to the AD account. From the command line it'd go something like this:
    sudo rm -R /Users/<AD_username>/
    sudo mv /Users/<local_username>/ /Users/<AD_username>
    sudo chown -R <AD_username> /Users/<AD_username>
    Make sure, of course, there is nothing in the original AD profile you wish to keep before removing it.
    leslie

  • How do I keep photoshop from changing extensions from .JPG to .jpg

    How do I keep photoshop from changing extensions from .JPG to .jpg?

    Preferences > File Handling and uncheck "Use Lower Case" (Mac)
    or in the same area in the Windows version, choose "Use Upper Case" from the drop-down menu.
    Gene

  • Error while calling Subroutine from Script

    HI Friends,
    I am getting a short dump whilecalling a suboutine from Script.
    Please suggest if am wrong with below code
    /: PERFORM GET_ADDRESS IN PROGRAM ZSUBROUTINES
    /: USING &MHND-KUNNR&
    /: CHANGING &ADRS-LINE0&
    /: CHANGING &ADRS-LINE1&
    /: ENDPERFORM
    All above fields are available in script window
    In the program
    FORM get_address    TABLES in_tab STRUCTURE itcsy
                                       out_tab stucture itcsy.
    ENDFORM.
    Thanks

    HI,
    Your code is correct, in the FORM and ENDFORM in the program, read the INPUT table and get the values and write your logic using these values and send back the values to the SCRIPT using the OUTTABLE. here you need to use the MODIFY statment for the outtable using Sy-TABIX.
    Regards
    Sudheer

Maybe you are looking for

  • Why is my page count always 1 (regardless of number of pages)?

    I just created a new Numbers document. It has 3 pages. In the footer I display (page number) of (page count). I would expect to see "1 of 3", "2 of 3", "3 of 3". What I get is "1 of 1", "2 of 1", "3 of 1". What do I have to do to get the page count t

  • After install of 10.9.2 have problems with rebooting

    I have had to reinstall 10.9.2 and won't dare reboot because: After install of 10.9.2 I reboot and got some kind of error that would not let me get to the logon screen. I'm not sure exactly where the hang up occurs but the output looks something simi

  • TS4088 MacBook Pro (15-inch, Mid 2012): Intermittent black screen

    My new MacBook Pro is running Mountain Lion and the screen suddenly goes black while I am working. It seems that the machine is running, but the screen just goes black and does not show the login box or anything else. In order to get back to the logi

  • How do I get previously purchased software on DVD listed as an App Store download?

    As many likely have, I have previously purchased Apple software (Aperture, Final Cut Express, iLife, iWork) before App Store began. I obviously do not want to re-purchase but now my Macbook Pro and Air do not have DVD drives. Is there a way to get Ap

  • Online storage for iTunes media

    Hi all, I was storing my whole iTunes library on my external hard drive, but on Monday it just stopped working (all the more infuriating because it is only 4 months old). However, this is not the first time that this has happened as 4 months ago I go