Adding dock icon _CFURLAliasData

Hello all,
    We are doing a deployment with a hybrid of two applications.  One is Mac native and the other is a Windows program running inside of VMware Fusion 4 in unity mode.
   We can make a dock icon for the Mac application, no sweat... but what we are still trying to do is add a dock icon for the windows application.
Background:
VMware Fusion creates app-bundles for all Windows applications that the VMware tools inside of Windows detects.   It then creates app bundles inside the ".vmwarevm" package directory that has a mac native program called "vmware-docker".   The Info.plist file in the app bundle contains the path to the Windows executable application as seen inside the VM and the ".vmwarevm" package's full system path.  This vmware-docker app knows if the app is running inside windows and makes the icon appear in the dock when unity mode is enabled.  It also allows you to launch the windows program from that dock icon and resume/restart the Windows vm if need be.
Problem:
Now, I can manually drag that icon to the dock and it works perfectly.
If however, I move the location of that vmware-docker app bundle because of difference on a different machine it understandably breaks.  Normally MacOS can figure this out and fix it, but not in this case.
So if I use a plist editor and fix the path in the _CFURLString variable to point to the correct location and killall the dock, the icon still does not work.
If I delete the persistent-apps entry for it and generate it from scratch with the _CFURLString to the proper path and _CFURLStringType = 0, I end up with a dock ? icon.   It seems that it only works if I drag it there.
This simply can't be.  I must be missing somthing...
When I do drag the icon to the dock, I do notice that my persistent-apps data shows this element with a _CFURLStringType of 15 and a _CFURLAliasData attribute. My thought is that it may have to do with _CFURLAliasData which I can't figure out the format of to reproduce it.   The hex values do seem to contain the path, but there is other stuff inside in a binary format which I have not been able to make sense of.
Anyone have any ideas where I can look next??
Thanks!  -Cheers, Peter.

Even though the '_CFURLString' has the format 'file://localhost/Applications/Calculator.app/', you need provide '/Applications/Calculator.app/'. Then, the OS X will fill up the corresponding '_CFURLAliasData' for you. I tested on 10.8.5 & 10.10, both works fine.
Hope this is not too late to reply.
Yang Wan
From Deepnet Security

Similar Messages

  • 10.6.8 Unable to click in text boxes or on utility menu at top of screen, Dock icons lead to containing folders instead of programs

    As stated in my subject, periodically I become unable to click in text boxes (in my browser, addresses/search) and am also unable to click on the various icons in the utility bar at the top of the screen such as bluetooth and volume control etc.  Also, when this occurs if I click on Applications or one of my Dock icons it leads to the containing folder as a destination instead of the program itself.  It resolves itself after awhile, but I can fix it immediately by unplugging my mouse and plugging it back in.  At that point, everything works fine as if nothing ever happened.  What is strange to me is that it fazes in and out, while being able to return to being fully operational.

    Have you tried adding the following css selector to your css file.
    .nav-bar a {
        text-align: center;
    or insert it in the <style> tag you have on the page:
      <style type="text/css">
      body {
        margin-left: 200px;
      .n {
        text-align: center;
    .nav-bar a {
        text-align: center;
      </style>

  • Updated apps break links with dock icons (Mac OS)

    When apps are updated via the CC desktop app, they sometimes (not always) come down with a new name which causes the link in the dock to break.
    This would be a nuisance with one or two apps, but when a CC user has (like I do) a dozen icons in their dock it means that every major update requires several broken dock icons to be replaced. And if (like me) the user has more than one login on their machine (for separate personal and business workspaces) then the nuisance is doubled.
    For example, I have just downloaded "Adobe Edge Animate CC 2014.1", which has removed the earlier version leaving an orphaned dock icon ("Adobe Edge Animate CC 2014"), for the sake of adding ".1" to the file name.
    As a general principle, version numbers do not belong in an application name; there is a perfectly good field in the file info window for version number which is where practically every other vendor puts theirs.
    This comes on top of the muddle of versions which has meant there are three "current" versions of some apps, for instance Photoshop (CS6, CC and CC 2014).
    The other problem with your system is that in a few short months "CC 2014" apps will be outdated, if not in practise, certainly in name.
    Some creative brains need to be exercised on this, don’t leave it to the nerds.

    If it happens in a new user you may be able to repair this with the 10.5.4 Combo Update This is a fuller install, as opposed to an incremental "delta" update so it should overwrite any files that are damaged or missing. It does not matter if you have applied it before.
    Remember to Verify Disk before update and repair permissions after update from /Applications/Utilities/Disk Utility.
    -mj

  • Mail dock icon problem

    The Mail dock icon always shows there are 7 unread messages in my inbox, when there are none. When there are some, their number is added to 7. This developed after I migrated the contents of my drive to my new computer.
    How can I get rid of the omnipresent number?

    I dont know how to solve this, but im guessing that the 7 could be from your old computer's mail application and theres probably a hidden file somewhere in the system that is keeping it there. :P

  • Clicking on Dock icon only brings most-recently-used window to front

    In Leopard, clicking on the iChat Dock icon would bring all iChat windows (contact lists, chats, etc.) in front of other open applications, and give focus to the most recently used iChat window.
    After installing Snow Leopard, clicking on the iChat Dock icon only brings the most recently used iChat window to the front and gives it focus -- other iChat windows remain behind other application windows (if that is where they were before).
    Is this just me? My friend tells me that it still behaves like it did in Leopard on his computer. Any ideas?

    In the First Post your Specs said Snow Leopard, now they say Tiger
    Sorry, I didn't realize it wouldn't remember that setting for me -- I am running Snow Leopard.
    With Chax in Leopard/iChat 4 an extra item was added to the Window menu of iChat that says "Always On top"
    No, this is not what I was looking for. I have another machine with Leopard, and it does not have Chax -- iChat windows are not always in front, but they all come to the front when clicking on the Dock icon.
    I don't use it on the Buddy List as you can set it on Any iChat window.
    What do you mean, "you can set it on Any iChat window"? You mean the Chax setting, or something else?
    Are any Minimised to the DOCK ?
    No, none are minimized to the Dock.
    Chax does not work in iChat 5 and may be the cause of the issue.
    There is a beta version of Chax for iChat 5.
    I would delete Chax and then the com.apple.ichat.plist to remove any thing in it that refers to Chax and then relaunch iChat.
    I deleted Chax and every Chax and iChat plist, then restarted my computer. The problem did not go away -- still, only one window comes to the front when I click on the iChat Dock icon -- the others stay behind other windows.

  • Dock icons dissapear on restart???

    I've been scratching my head for the past 3 months with this one! Sometimes when I restart my eMac 1.25 running OSX 10.4.3 the dock appears at the bottom of the screen with only 5 icons in it? I usually have over 20 icons in my dock with everything from system apps to folders and shortcuts which help me work quickly according to my usual jobs.
    The problem has been getting more common and is now starting to really annoy me. Today for instance I came into the office to get lots of work out of the way ready for the new year push only to find that my **** dock icons have disappeared! Which is why I'm now putting this post into the forum for help.
    I deleted the dock.plist which only reverted to the default icons which doesn't help as I am sure that this problem will continue to happen until I know what is causing this.
    Okay now for some application info: right I switched off File-vault because its of no use to me and I use System Optimiser X to run scheduled maintenance etc. Would this app cause any problems??? Also I use Shapeshifter to alter the feel of the mac - could this be at fault?
    I really do need help with this as its now loosing me too much valuable time at work.
    PS: I'm going to alter the default.plist in the core services to include my preferred settings to at least mean that I can always get them if I logout!
    Please help - while I still have some hair left .
    eMac 1.25   Mac OS X (10.4.3)   Also have a Mac Mini 1.4 and an iMac DV400

    Thanks for the feedback,
    I have now removed the maintenance application and have restarted and also logged out a few times and the icons are still there. Nevertheless, This normally happens after a few days so Ill see in the morning GMT10.00AM what happens.
    I mentioned that I have actually altered the default.plist for the dock application to list all of my preferred icons/applications which does work so at least I can get my icons quickly by deleting and replacing with a copy of the file if I need to? Still someone must know why this is happening?
    The mac has exhibited very few problems at all in its life-span so it is a mystery to my. The only problem I have had is with entourage - which acted very strangely recently by adding attachments to my e-mails so instead of one attachment I get a smaller sized duplicate of it. No answer on Microsoft's troubleshooting site and no help on the mac forums but don't believe its this program causing the deleting of the docs icons.
    If anyone knows anything the please help.
    Jason - ideo-sync
    eMac 1.25   Mac OS X (10.4.3)   Also have a Mac Mini 1.4 and an iMac DV400

  • Dock icons disappear when quitting apps

    This is a brand new 1.9 GHz 17" iMac G5 with iSight built-in.
    Software is up to date with OS 10.4.3 and all patches.
    While working with the owner today, I quit Safari, and watched the Safari icon disappear from the dock. No smoke no nothing--when the App closed, the icon vanished.
    Then I tried to demo iChat--and had the same experience.
    It isn't a problem to drag the apps back to the Dock, but it shouldn't have to be done.
    I finally wound up launching/quitting all Apps - all finally behaved properly, at least today.
    Ideas on what's happening and how to prevent?

    Ohairy, I'd guess that it was a corrupt plist. ~/library/preferences/com.apple.dock.plist.
    Create a new account, name it "test" and see how the Dock icons work in that User acct? (That will tell if your problem is systemwide or limited to your User acct.)
    If the Dock icons function normally in the new user, I'd delete the plist and rebuild the Dock icons.
    If other "odd" issues begin to show up it may indicate hardware problems with added ram, cpu or hard disk. Run Disk Repair & AHT (Apple Hardware Test).
    -mj
    [email protected]

  • Screen Darkens When Dropping File on Dock Icon

    Hello:
    This is my first post.
    I've been a Mac evangelist since I first started using them in Prepress in 1987.
    But there is a feature in Snow Leopard that I absolutely cannot abide.
    It's the way the display darkens to a vignetted area in the middle of the screen EVERY time I drop a file on a dock icon. Sometimes it seems to "stick' on this display for a second or two. Sometimes the display darkens and there is a blue Windows-like edge to the dark screen. I hate it.
    In a production environment this weird feature is a serious interruption. I can't imagine ANYONE wanting it, requesting it or dreaming it up--even if they are a home user. What useful purpose could this "feature" possibly serve?
    Please, please if there is anyone out there who can help me kill this "feature" forever, please give me a hand. Is this Dock Expose gone awry? I have looked up and found all the Kill Dock Expose commands there are out there and none of them work. This horrible "feature" just keeps on going like the ******* EverReady bunny.
    It wastes an hour of work time every week if all the seconds it wastes are added up.
    Is there anyone out there who can help?
    Hoping for freedom from this "feature" in 2001....

    Thanks, bd, but I have long since turned off the side buttons in System Prefs in an attempt to stop this from happening.... Also, it doesn't just happen on my machine. I take care of all the Macs here [15] and I can get any of them to do it if I drag a file to a dock icon and hold it over the icon long enough...mine just seems to do it instantly.
    kb

  • Dock Icons become QUESTION MARKS

    i have DOCK ICONS that i have told to stay in the dock (this is how i start the programs) and every two weeks or so one or another one of these suddenly shows up as a BIG QUESTION MARK.
    i asked this once before and someone said i should just drag the icon off and start the program again and make sure to tell it to stay in the dock.
    but this is a major pain and makes it seem like there is something wrong with the OS not to mention it is really annoying to have to constantly re-organized my desktop.
    does anyone know WHY this may happen and if so HOW to keep it from happening?
    i mean, is there a PATH that gets linked to this icon and moving this data will somehow create the question mark? some other explanation?
    TIA for any help.

    hi kappy. again a BIG THANK YOU for helping me on this.
    these are good points but there is definitely a different set of aspects to working on a mac with respect to the workflows regarding app install but i am not technically knowledgeable enough to tell you why this is so. i can just say that it is very confusing and it could use some cleaning up. just the fact that i have to post this question is an indication of this IMHO.
    also, at the same time one simply has to look at all the Application folders on the mac and the various ways they are accessed or pointed to. when you say something like you just have to (manually) put the app file in the applications folder these things are all over the place.
    i have an "Applications" folder under my Home folder that has two folders and one application that has installed themselves there. then i have a Dock icon that says Applications that has a list of programs, and then i have a desktop shortcut that has a list of items. if i ask myself the reasonable question of - well - HOW do i drag and drop the .app file into the Applications folder like i am supposed to, or WHERE is the Applications folder that shows all the items in my desktop shortcut or in the dock icon - - reasonable (and reasonably intelligent) people might be completely stumped.
    now i /know/ that this "other" Applications folder is actually listed under my HARD DRIVE icon and not my home folder because if i double click on the desktop icon or if i open the dock icon in finder i can see that this is the case. however, this means that we are talking about something that is HIDDEN from the user on the mac OS. so for me to MANUALLY add a . app file to the Applications folder i somehow have to - well - presumably i have to make the leap of faith that when i add this file to my DESKTOP ICON i am adding it to the correct (hidden) folder and not to the one that i can see plain as day in my Home Folder but which appears to contain next to nothing.
    I mean, i am manually adding an app to a desktop icon that has the same name as another folder so that it arrives in a hidden folder with the same name. this is ridiculous. this is just dumb and probably goes a long way toward adding to the confusion. the fact that the Home Folder level Application folder is the one that is visible is even dumber.
    again, a set of prompts upon program installation might be a Mac OS level need and not something that should devolve down to the developers who probably have enough on their hands trying to keep up with changes in the from OS to OS.
    as a concrete example on this thread - the answer my issue is that either there is no .app file in the /hidden/ Applications folder for the dock icon to continue to reference or that the ICON was added to the dock while the .app file was somewhere and now it is no longer seeing this .app file where it originally saw it.
    A slightly off-topic BTW:
    do you know why I have one app file in particular that i see in the Home Folder Level Applications folder?  this is a reasonably sophisticated company ostensibly they think this is a better place for the App and /they/ did this from what i can tell instead of me accidentally screwing this up because i was sleepy or distracted and not thinking about the Escheresque aspects of installing these .app files presumably? i mean, this in itself is confusing since I DO see this app icon in the dock and I DO see this app in this folder (all by its lonesome basically) but i DON'T see this app listed in my DOCK ICON list of Apps (or in my desktop shortcut list of apps) which from my perspective would/should basically cause a normal human being to think that the app is not installed...

  • Can't see system ram/memory usage in Mavericks dock icon anymore

    I used to be able to select memory usage for the dock icon, but now it seems to be gone, or not there, in Mavericks.  All I see now is CPU, Network, and Disk Activity.    Anyone know where memory usage  went?

    .....update,         I found this answer on another post.    (I may have to use third party options untill Apple provides an updated memory "pressure" usage to the dock icon.  
    This is no longer an option, especially since Mavericks has new memory management routines (ie, memory compression) that make the charting of memory usage less straightforward. Apple has switched to a new "Memory Pressure" approach to viewing memory usage, which is available in the Memory section of Activity Monitor, but so far has not been added as a Dock icon option. Hopefully Apple will do so, as this would perhaps be one of the more useful Dock icon options.

  • ICal dock icon "stuck" on fixed date

    Today is July 6, but the iCal dock icon on my MacBook Pro running Snow Leopard says 5. Yesterday, it said 1, but I rebooted last night. The icon changes to the correct number when I launch iCal, but as soon as I quit, it goes back to showing the day I last rebooted.
    Any ideas? This one has me stumped. No problem with iCal running on my Mac Mini with Leopard. Adding new events doesn't change a thing.

    I noticed this morning mine said Jul 7. When I clicked on it to open iCal, then closed iCal it said Jul 9. Annoying since I use that icon as a quick "date check" sometimes.

  • Dock icons occasionaly ping at me

    Lately, I seem to have an issue where for some reason, a dock icon with ping at me (the sound I have set up in prefs for sound). If I hold on it long enough, it will pop up above with the normal option, but just clicking on the dock icon itself produces just a ping when this happens. It only happens every now and then. A restart, or logout, fixes the issue. It is not one specific icon. I just wiped the HD and started from stratch. Happens every now and then both before and after. Wondering if this is a bug. Can't "make it happen."

    I am having the same problem. All other Dock features, including control-click on the "bad" icon, seem to work properly. I haven't figured out the pattern. At first I thought the problem was only with Mail after launching Google Earth. I removed Mail from the Dock and re-added it and the problem seemed to go away. After a while I noticed the problem again, and some times not associated with Google Earth. Now I am thinking it has something to do with the timing of opening or closing an application in relation to clicks in the dock. Another possibility is that I am using a Kensington 5 button mouse. I recently upgraded from OSX 10.4.5 to 10.4.6 but the problem persists. Note that if you kill the Dock it automatically restarts and the problem goes away, at least temporarily. This seems to be a fairly new behavior. iLife 06, Google Earth, TurboTax and Kensington Mouse are the only new things that I am aware of on my machine.

  • ICal dock icon wont update in Leopard

    My iCal dock icon has stopped updating the current date.
    I have dragged the icon off the dock and re-dragged a fresh version from the iCal application but this only works for the current day where again it will not update the next day.
    I have had Leopard for almost 2 months and this problem has only just started in the last week.

    Yes, I have the same problem as well. And it started happening after the recent software update. I have also tried the suggested solution - dragging out the icon and restarting, but it still doesn't work.
    When I upgraded to Leopard I was happy that everyday the iCal icon updated the date automatically, but I think the Tiger way of launching iCal at login and hiding its window would have to be the solution in Leopard as well

  • Hiding a program with no dock icon

    I am looking for a way to hide an application which is running without a dock icon.
    I have tried using spirited away but as soon as I hide the dock icon(space suit is the app in question)spirited away can no longer find the application.
    The reason for my enquiry is that space suit creates a window in expose called "SpaceSuitWin" which is taking up unnecessary space and at times making other window preview so small that they are indecipherable.
    Any feedback would be awesome, not sure if this is even possible but any work arounds or alternatives are welcome. Also a fairly novice user so any tech. solutions may need to be well explained.
    Thanks

    Find the info.plist file in the Application, and edit it.
    Put this:
    <key>LSUIElement</key>
    <string>1</string>
    just above the penultimate </dict> entry.
    You might have to move the application to update the registry. Then move it back. Relaunch.
    You need to be aware that this will also eliminate the menu bar, which might be problematic depending upon the application.

  • Mouse over dock icon no longer indicates "application not responding"

    A very convenient feature seems to be missing from Snow Leopard. In prior versions, if an application was not responding, holding the cursor over its dock icon would display "[Application] Not Responding" and also an option to Force Quit. This status message does not appear in Snow Leopard.
    Are we to assume that if we click and hold on a dock icon and "Force Quit" is presented as an option, that the application has stopped responding?
    Suggestions?

    drdocument wrote:
    Thanks!
    So if I click and hold a dock icon and "Force Quit" is shown instead of "Quit" would that indicate that the particular application is in the midst of some process and simply unable to respond?
    Should I simply allow more time for the app to finish whatever it's doing?
    it could be either. sometimes an application is busy and is showing as not responding but will come out of it after a while. but sometimes it's truly hanging and then you have to force quit it to get rid of it. there is no way to tell just by looking at the dock. give it a bit of time and if it's still not responding then force quit. but if it's happening all the time then you may have problems with your system.
    In particular, here, I've launched DiskWarrior 4.2 on a Mini (via Screen Sharing from my Mac Pro) in an attempt to rebuild directory on a My Book 1TB external drive connected by FireWire, which Disk Utility indicates needs repair but DU cannot repair. Ideas?
    so what does disk warrior say when you try to rebuild the directory? and you should also verify the internal drive on the mini too.

Maybe you are looking for

  • DVD only works on TV.

    I burned a DVD with iDVD. The DVD only works on TV but not on computer. Do you know why and how to make a DVD which works both on TV and computer?

  • Invoice Print error

    Hi, I want to take print of Sales Invoice. I goto VF02, Give billing document number and enter I give output type and printer and save. When i say Issue output to, i get following error message: Error: "EXPRESS DOCUMENT :UPDATE WAS TERMINATED " RECEI

  • Missing Photographs - 5,000 in total - is there a programmatic way to get the complete file paths missing?

    HostOS : Mac OS X LightRoom version : 4.4 I accidentally moved linked files over the past few years, and just discovered (via "Missing Photos" view) that I have 5,000 missing photos. I know the master photos are on my hard disk drive ... so, that is

  • Is It Possible To Enlarge Thumbnail Display Size Without Enlarging Text On Firefox Window?

    Would Like To Enlarge Default Display Size Of Thumbnails, Without Enlarging Text Display. View Menu Allows Screen Component Enlargement But Text Size Becomes Prohibitive.

  • WebService from XI

    Hi Expert, I have a RFC in R/3 system and I need to expose the RFC in XI as web service. Could anyone guide me how to create this scenario. Note: my customer do not want to expose webservice from RFC in R/3 system. That can be done only from XI, if p