Possible to change folder icon using app.system()?  [PC/mac]

I need help to verify if this works smoothly.
... If it is even possible...
#target bridge;
if ( BridgeTalk.appName == "bridge" ) {
     if ( Folder.fs == "Macintosh" ) {
          iconPath = new File("/someplace/MyIcon.icns");
          var myFolder = new Folder("/someplace");
          // select my folder and tell OSX to change the icon to MyIcon.icns
          app.system("mac command lines");
     } else if ( Folder.fs == "Windows" ) {
          iconPath = new File("/someplace/MyIcon.ico");
          myFolder = new Folder("/someplace");
          // select my folder and tell OSX to change the icon to MyIcon.ico
          app.system("command code"); // for windows7
     } else {
          alert ("Unsupported file system");

var f=new File(app.document.presentationPath  + "/desktop.ini");
f.open('w');
f.encoding = "UTF8";
f.writeln("[.ShellClassInfo]");
// I have chosen one icon of windows7, but you can design and create your own icon, export it to .ico and add it here, for ex: f.writeln("IconResource=c:\\Users\\Public\\myIcons\\myicon.ico");
f.writeln("IconResource=%windir%\\system32\\imageres.dll,101"); // if using dll of windows, a 2nd argument is needed to set the number of the icon (there are several possible dll libraries with hundreds of icons)
f.writeln("[ViewState]");
f.writeln("Mode=");
f.writeln("Vid=");
f.writeln("FolderType=Pictures");
f.close();
.hidden=true;
var cmd = "attrib +s  \"" + decodeURI(app.document.presentationPath) + "\"";
app.system(cmd);
// go to the parent folder to refresh and come back again:
var back = app.document.thumbnail.uri;
app.document.thumbnail = app.document.thumbnail.parent;
app.document.thumbnail.refresh();
app.document.thumbnail = new Thumbnail(back);

Similar Messages

  • Can I change folder icons on my 5s?

    Can I change folder icons on my 5s?

    What folders? If you mean the folders you can create to organise apps, then no, those icons are automatically generated from the icons of the apps inside the folder.

  • Is it possible to change instance and use OEM ?

    We have 4 single DB instance in same oracle 11gr2 server on win2008R2.
    We will not use grid control because of lack of time, knowledge and customer approval.
    Is it possible to change instance and use OEM by changing ORACLE_UNQNAME variable or in any way ?

    840105 wrote:
    IF what EdStevens said is true,
    WHat environmental variable ,or othe settings shoud I set to start 4 different dbconsole and access those OEM in same server ?
    "IF" what I said is true???
    The same environment variables you set to start the database itself .....
    Here's the environment with no oracle-specific settings:
    oracle:$ env | grep ORA | sort
    PS1=\n\u:$ORACLE_SID$
    Now we set the environment for database 'orcl'
    oracle:$ . oraenv
    ORACLE_SID = [oracle] ? orcl
    The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 is /u01/app/oracle
    Now the environment looks like this:
    oracle:orcl$ env | grep ORA | sort
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    ORACLE_SID=orcl
    PS1=\n\u:$ORACLE_SID$
    Start the dbcontrol
    oracle:orcl$ emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
    https://vblnxsrv01.vbdomain:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ........................... started.
    If Oracle would only provide documentation ... oh, wait!
    Getting Started with Database Administration
    Managing Oracle Enterprise Manager Database Control

  • HT1454 Is it possible to play games and using apps using Component or Composite  cables with ipod touch 4g?

    Is it possible to play games and using apps on TV using Component or Composite cables with ipod touch 4g?
    Or using universal dock?
    Or this is only for video?

    The iPod only displays TV out for apps that support TV out. The App description will say if it supports TV out.

  • Changing folder icon colours?

    Hi,
    A few years ago I had a small application that allowed me to change the colour of folder icons. Does anybody have any idea what it might have been? I am not looking for something like Labels-x, I don't want it to be system wide.
    Thanks, Andrew.

    This litte app, Folder Text Labeler
    http://www.download.com/Folder-Text-Labeler/3000-2256_4-10469113.html
    might do the trick...
     Intel iMac,  PowerBook   Mac OS X (10.4.8)  

  • Changing folder icons issue

    I'm suddenly having a problem in snow leopard (mac os x 10.6.8) that I haven't had before in older versions. When I use copy and paste to change a folder's icon, the folder then contains an 'icon exec' file that I do not want there. If I trash it, the icon on the folder gets trashed as well. Anyone know how I can change the icon without having to now include that 'icon exec' file in the folder? Thanks.

    Just rebooted into 10.6.8 to see if its behavior was any different than 10.7.2, which I now use most of the time.
    No change - in Lion or Snow Leopard, when I added a custom icon to a folder, an invisible file was added to the folder's contents. This file is named just "icon" with no extension, and does not display the exec icon - it displays the generic blank page with turned-down-corner icon. I used FileBuddy to do the looking, since invisibles are visible to it.
    The icon I used as a source was one derived from a JPEG image. I opened the image in Preview, did a Command-A (select all) to select the entire image, then Command-C (copy) to place it on the clipboard, then did a Get Info on the folder's icon and pasted (Command-V) the image onto the icon in the upper left.
    Perhaps the difference stems from the nature of the source image you are using?

  • Adobe Portfolio - Changing Folder Icon

    Using Adobe Acrobat Pro 9
    Is there any way to use a customized graphic/jpg for the Folders icon?
    When I have my portfolio grouped in folders, I want to be able to visually show something about that folder (insert JPG), not just a picture of a folder...

    Here's another discussion:
    http://bbs.applescript.net/viewtopic.php?id=10591
    This discussion sets forth two approaches, and I have made both of them work in their own way. So my question is more or less answered -- more or less, because the approach that is most satisfactory is the one that you outline in that discussion, but it seems only able to set a custom icon to a new folder ("Target").
    Please enlighten me if I'm missing something, but is there a way of making the "target" folder a pre-existing folder with another custom icon? What I really want to do is to change a folder icon, not create a new folder with a custom icon.
    What's so frustrating is that I can open two folders with different custom icons and drag their invisible icon files back and forth (changing the icons), but I haven't found a way to do that with a script.
    Thanks very much for your help.
    2.7G5 AND OTHERS   Mac OS X (10.4.5)  

  • [Solved] I can't change folder icons in my home folder (XFCE)

    Just in case some user have disabled signatures:
    XFCE 4.10
    Thunar
    AwOken icons
    Hello,
    I am currently using the AwOken icon set, which I downloaded on deviantart.com.
    So... I'd like the typical folders
    Pictures
    Videos
    Music
    Documents
    etc.
    to use the corresponding icons from, well, acutally any icon set I am using. But when I right-click on any folder, I can't change the Icon (second tab). Am I doing it wrong or is that a bug?
    edit
    So I tested it with a lot of other default XFCE themes and themes from the AUR (Greybird, Albatross and so forth). I can't change any icon. That's too bad, I have no clue whatsoever what the problem is, I was hoping I could change the bookmarks' icons in Thunar's sidebar as well.
    Last edited by jones (2013-03-15 15:15:50)

    VCoolio wrote:install xdg-user-dirs, maybe logout and back in. Folders are configured in ~/.config/user-dirs.dirs
    Also check here
    Yup, logging out and back in is necessary.
    Wohoo, that worked. Thanks

  • Change Folder Icon in Functions Palette

    Hey, have two questions.  I'm writing an instrument driver for an instrument I have here at work, and I have the VI's working.  I have the VIs organized and inserted into a library, which is in a project including that library and an examples folder (so basically the way Labview downloaded instrument drivers are set up).  I put all this in the instr.lib folder, and the VIs show up in the functions palette just fine.  So, based on that setup, my questions are:
    1) How do I change the folder icons (not the VI Icons - already did that) in the functions palette?
    2) How do LV instrument drivers hide the "Examples" folder and simply display the VIs from the "Public" Folder?  (they don't appear to be marked private)
    Thanks!
    TG
     

    I think the secret is in having an mnu file, which defines what will appear in the palettes. You can create one by editing the palettes (under Tools>>Advanced) and there you should be able to remove items and to edit the palette icon by right clicking it. You should probably also make sure that the mnu file is saved in the same folder, so that you can have it in other PCs. Note that the palette editor has this annoying confirmation dialog which tends to hide under other windows and which you need to get to finish editing, so move it to somewhere you can find it before you start editing.
    Another option is using VIPM to install the driver, and that will also allow you to edit a palette.

  • Changing Folder Icon

    I've a N82 phone, and I'm creating some folders, and needs to change their icons, will it be possible?in the folder option, no feature to change the icon.

    hi m,
    try to download new Themes with different folder icons, folder icons will be changed depending from the Themes motiff...

  • Mac OS wont let me change folder icons

    I recently tried to change folder/hard disk icons on my mac and have had no luck since the Copy/Paste tabs in the edit menu are grayed out once i open the get info box. I am logged in as a admin so i dont know why i am having this issue...
    Any ideas?
    Thanks in advance! :-D

    Hmm, strange. Just to make sure you are doing it right. You copy an image to the clipboard. You open "get info" panel for the folder. You select the small folder icon in the top left corner. You paste the image there. Is this the procedure you are using?

  • Change folder icons in Acrobat X Portfolios?

    Will I be able to change foder icons an an Acrobat X portfolio? Other file icons too?

    Yes and no. Adobe has an SDK for creating custom portfolios (which would include creating folder icons). Information can be found here: http://labs.adobe.com/technologies/portfoliosdk/    However, this requires additional tools to accomplish (ie Flash Builder).
    If the changes you want to make are fairly minimal (e.g. changing the color, size, etc) you could always try entering a feature request.

  • TP4 FileExplorer tree: change Folder icon when expanded/collapsed

    I am trying to create a tree similar with FileExplorer from the Demo application. I am trying to use two icons for every node: one for expanded node and another one for collapsed.
    I use a rowDisclosureListener tag
    rowDisclosureListener="#{menuBean.menuRowDisclosureEvent}to fire an expand/collapse event. In a custom method menuRowDisclosureEvent(RowDisclosureEvent disclosureEvent) I retreive the selected node and programatically change the icon. The only thing is that the tree view itself is not refreshed on the same phase cycle. The node icons are refreshed only at the next requests.
    Thanks,
    /Florin

    I have also tried to use:
    AdfFacesContext.getCurrentInstance().addPartialTarget(tree);Didn't helped

  • Changing folder icons on favorites list

    i've recently moved my user folder to another HD on mac.
    folders such as desktop, doc, downloads, pictures that i needed to change on favorites list now have the generical folder icon.
    when i try to change the icon, the folder in the submenu appears correct but the folder docked in my favorites list on the left doesn't change.
    is there a way to do this?
    thanks

    Copy the icon you want to the clipboard.
    Select the file/folder you want to change and do Get Info (cmd-I).
    Click the file/folder icon on the Info window. It will highlight with a blue glow.
    Paste.

  • Folder Icon using PNG

    I'm trying to change the icon of a folder to a PNG that has some transparent area, but when i change the icon of the folder... it puts a white box around the image.... how do i get it to be just the PNG, and not the white box?

    The background of the actual PNG is already transparent....
    Photoshop:
    Image as PNG
    Image in Preview, showing transparency
    Get Info on the Foler i want to change the icon (Before)
    After:

Maybe you are looking for