AppleScript - Show/Hide dock when ScreenSharing Session starts/ends

Hello,
I'd love to have an Apple Script that shows me my Dock when a screen sharing Session starts, and hides it again when the session ends. And it should do this automatically
Is there a way to achieve that????
Thanks a lot

you can do it as follows.
download and install DoSomethingWhen
http://www.azarhi.com/Projects/DSW/
then paste the following into AppleScript Editor
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
tell application "System Events"
tell dock preferences
set autohide to false
end tell
end tell</pre>
save it as an application. then make a rule using DoSomethingWhen to run the above application whenever ScreenSharing launches. ScreenSharing.app is located in /System/Library/Coreservices
then make another rule for when screen sharing quits (change false to true in the above script for that one).

Similar Messages

  • Can't open show / hide dock after 10.6.4 update

    I choose to hide my dock in systems prefs. When I do, I move my mouse to the bottom of the screen to see if it pops up and it won't show. This never happened to be before the update. Also selecting things has gone all wonky. When I click on my downloads folder, it acts as if I'm still holding down the mouse. This also makes it incredibly difficult to navigate flash websites. Thoughts?

    I've upgraded to 10.6.4 and I don't seem to have your problems. Try un-checking hide dock in preference and checking it again.

  • Show/hide fields when selecting an option from a drop-down menu.

    Hello Gurus!
    I have a question about creating a Java Script withing Acrobat pro.  This is what i would like to do: I created a drop-down menu with several selection entries.  Upon the customer making one of the selection entries, i would like for the correct fields that i created to become visible and all other fields to hide.  Is this even possible to do?  The reasoning behind this is because we have a form that customers have to generate in order to request access to certain financial accounts; we have over 20 different types of accounts and for each instance the customer has to fill out the same form.  By creating a drop down menu, i can use the same form by just changing the drop-down selection and clicking on the designated fields for that selection.  At this time i have over 20 different forms that poing to 20 different account requests and i would hate to send the form 20 different times to one person.  The reason i can not add all fields desired for all accounts is due to the fact that the form would be filled with hundreds of checkmarks and instructions thus making the process too tideous for the customer.  Hope you guys can help out.
    ~Vader

    The good news is, it can be done (and it has been done).
    There are a few things to be aware of, however.
    The most important is that the form must be planned well, which means that you must think carefully about your logic and even more so about your field naming (hierarchical field names are your friend). One fundamental issue, you have to be aware of, is that this form no longer will be a "standard form". The consequence of this is that you may have to be aware that you might get into trouble when you have to prove that your user filled out that particular standard form (talk to your compliance and forms management people about that).
    You also may have to decide whether the form should be usable in Reader. And, if so, how much you want to spend on the right to do so. You will see below why…
    There are actually two approaches for dynamically showing/hiding parts of a form. If your form can be separated between a fixed first page (where you also have the account type selection), and a variable part (depending on the selection), you could use Templates, which you spawn according to the selection, and delete pages when you change the selection. This approach is very easy to implement, but requires Reader Extensions Server to allow it to work in Reader; Acrobat Pro's extended rights are not sufficient for that.
    The other approach is showing/hiding fields. If you did your homework well, it would be very easy to first hide all subsequent fields, and then show the ones you need in two lines of code. This approach does not require extended rights for Reader at all, as long as your forms will always have the same number of pages, for each of your account types. This approach also works for the cases where the differences between the individual forms are very small. It does also work for showing/hiding bigger chunks of the form. In that case, you might create the "background" separately, and then put it as an icon into a button field which you will show/hide together with the carefully placed on top of it active fill-out fields.
    There is a third possibility, which Adobe Propaganda probably would suggest, and that woudl be subforms in LiveCycle Designer. The consequence is, however, that you won't have PDF forms, but proprietary XFA forms instead. And you may have more developing and maintenance work than with the other approaches.
    Back to your original question: you could use a Keystroke script evaluating event.changeEx of the combo box field. Depending on that, you would run your action to set up the according form part. The other way to do it would be evaluating event.value in the onBlur event. The latter would have the advantage that the selection has been made, and you get a bit more time to set up the form (this may in fact be an issue, particularly with Acrobat 9 and 10, which may take their time to show/hide fields).
    Another possibility instead of a drop down (combo box field) would be a popup, where you would have a button to press, and the list of selections pops up. This second method uses app.popUpMenuEx().
    Hope this can help.
    Max Wyss.

  • Stick Show/Hide Dock Status with each Space ?

    Hi,
    I'd like to save the Show/Hide status of the Dock with each and every Space, so that for example I can always see the Dock on Space 1 where I have my Mail, iChat, iCal and other apps which use their Dock icons to notify me of new events, but I never want to see it on Space 3 or 4 where I only have Aperture or Logic on my entire screen.
    Then I wouldn't have to press commandoptionD to show or hide the Dock each time after switching to a different Space.
    Is that somehow possible ?
    Thanks !

    Hi,
    I'd like to save the Show/Hide status of the Dock with each and every Space, so that for example I can always see the Dock on Space 1 where I have my Mail, iChat, iCal and other apps which use their Dock icons to notify me of new events, but I never want to see it on Space 3 or 4 where I only have Aperture or Logic on my entire screen.
    Then I wouldn't have to press commandoptionD to show or hide the Dock each time after switching to a different Space.
    Is that somehow possible ?
    Thanks !

  • Show-Hide Dock Preferences Problem

    Recently experiencing intermittent Preferences reset to show Dock all the time. Anyone else having this problem and a possible fix? TIA

    The "Standard (PPR)" template is included in all the builtin themes since version 2.0. But if you have upgraded your Apex installation from an earlier version, the upgrade process will NOT stick that template in your existing apps/themes.
    To get it, the easiest way is to install the Sample Application (Home>Create Application > Sample Application), choose the theme you want (to match your actual application) and proceed to install the sample application.
    Now go to your app, go to the page you are on, click on the + next to the Templates in the 3rd column and choose Report template, "As a copy of a ...", choose the Sample app you just installed, and select the Standard PPR template.
    Now all you need to do is go to Report Attributes and switch your report template to this new template and the column header sorting will not refresh the page so your Hide/Show region will stay open.
    Hope this helps.
    Actually I want to do something a bit fancier and save it in a collection so multiple pages and pages can be saved across user sessions
    P.S: Carl, any progress on this? Thanks

  • Apps don't show on Dock when open in Snow Leopard

    I just noticed this today. I'm not sure if it just started or if it has been happening since I upgraded from Leopard to Snow Leopard. Anyway, I have noticed two things about the new dock. 1st, when I have an application open that is on my dock, there is no longer a light underneath it that indicates it is open. 2nd, when I open an app that is not on the dock, the icon is not showing up on the dock. Is this happening to anyone else? Any suggestions on how to fix?

    I've had the same problem; its a minor irritant. I've trashed the preferences but the behavior continues. I find that some apps, Stickies for example, don't appear on the dock the first time you use them. However, if you restart the system, the next time you use the app it appears in the doc and behaves properly.

  • Printer icon not in dock when printing

    Since upgrading to Moutain Lion my printer icon had disappeared from the dock during printing. Previously it would show in dock when I was printing, Now nothing. Still able to print without issue and can see queue by going into System preferences. Do not see a place to make it appea again? Any thoughts?
    Thanks in advance

    I should have mentioned that I already tried removing then adding the printer with no success. I see the printer under system preferences and it is printing normally. Just have no icon appearing in dock when in process of actually printing a page. So since I attach to it wirelessly, I am always concerned it is not printing when I want to. So it means I have to open up System preferences>Printer Queue to make sure it is printing. Would love to get the automatic icon in the dock back in place

  • Show/hide layer bug PS 12.01.x64?

    I know that you OPT-Cllick on the eyeball to show or hide multiple layers in PS on the Mac. I could hide all by OPT-clicking on one eyeball. But OPT-Clicking it again did not show all the hidden layers again. It did nothing. Even after several reboots.I had to manually turn on all the layers.
    But then I CONTROL-Clicked on the eyeball to bring up the context menu, which said "Show/Hide all layers" and somehow that woke up the show/hide function when OPT-Clicking on an eyeball. So now everything works normally. The FNCT-Click (or right mouse button) on the eyeball has become a switch to turn on the OPT-Click behavior.
    Anyone else notice this?
    Thanks
    Stan
    MacBookPro6,2 Intel Core i7o OS 10.6.4

    The second Option+Eyeball click is a not a "show hidden layers" command, it goes to the previous state of visible layers... so if you opt+eyeball+click to just see one layer, then for whatever reason make another layer visible, or hide that layer and make another visible, or if you manually hid all but one layer, then that second opt+eyeball+click will appear not to work (if your expectation is to have all the layers become visible)
    Kind of a convoluted answer there!  But try that out and see if that is what you are experiencing.
    I think at one point, quite a few versions ago, the opt+eyeball+click was a "show this layer/show all hidden layers" command. But Adobe changed the behavior because the second opt+click would make every layer visible, including the layers you had intentionally hidden.

  • Explanation of show/hide parent?

    The reason I am asking is:  I don't seem to have those options (show/hide Parent) when right clicking on folders in the tree.  The way I have been organizing in LR4 is by creating a new top level folder and dragging the individual folders into that new folder (within LR).
    I will be moving to a new computer soon and want to make sure the move goes well...
    Thanks,
    kristin

    If the parent folder is shown in LR (which, in my case is D:), then all of the subfolders will not show the command "Show Parent". If you right click on the parent folder, it should say "Hide This Parent".
    If the parent folder is not shown in LR ... well, I'm sure you can guess
    The purpose is to allow you to configure the appearance of the Folder Panel.

  • Applications won't show in dock?

    My applications won't show in dock when I'm using them, for example, I'm using imovie and vuze now and they will not appear in dock unlike in Lion. Is this something apple has introduced in mountain lion? They open when I select them from spotlight but they won't show up in dock.
    Is there a fix for this?

    I had a similar issue and I went to System Preferences > Dock, and I unchecked each check box that appears at the bottom. Then I restarted. Then I check the boxes that I had previously checked. This worked for me, I hope it will for you, too.

  • My left shift key on Macbook Pro Retina (15") is behaving like the F11 key (show/hide open windows).  The key behaves the same for the laptop keyboard and for an external Apple keyboard?  This just started in last week after 6 months of use

    My left shift key on Macbook Pro Retina (15") is behaving like the F11 key (show/hide open windows). 
    The left shift key behaves the same on the laptop keyboard and on an external Apple keyboard. 
    This just started in last week after 6 months of use.  The right shift key and other keys on the keyboard all appear to work correctly.
    Suggestions greatly appreciated.

    I have a solution to this issue now after a discussion with Apple Support.  Some where in the last few weeks, there was a change in the key that would do a Show Desktop under the Mission Control settings in the System Preferences.  Even though the key sequence that was shown for the Show Desktop setting did not include the Left SHift key, by changing this first to having no key sequence and applying that and then changing it back to the F11 key, the Left SHift key issue that I was having has cleared up.
    A second issue that was uncovered was that the SSD had some issues (uncovered when I ran Disk Utility using the Repair Disk key).  I had to restart and use the Disk Utility through the Command R sequence to get to the stand alone Disk Utility.  The SSD appears to be running better as a result as well.
    Hope that this is of use to someone else in the future.

  • How to only show dock when no apps are open

    I would like for a way to configure my dock so that it is only visible when my desktop is showing, and that it goes into the "automatically show and hide the dock" when applications are open on my current desktop. This would allow for a full screen experience in-app, but still have the convenience of all my apps visible when I do not have an app open on my current desktop.
    I assume a simple application or mod could be built to allow for this?

    Hi,
    Not by my knowledge or ever read or here of it this is posible ...
    Dimaxum

  • HT2474 when I am opening any application including safari, these icons are not showing in dock, how to get open applications in my dock?

    when I am opening any application including safari, these icons are not showing in dock, how to get open applications in my dock?

    This could be a plist corruption problem, but I'm not sure.
    Sometimes, the preference list files get corrupted. You can usually just remove them and they'll get re-created. This may require you to reset certain settings. A notable exception to this is the Mail plist which actually stores the Library structure of your email accounts. Deleting the Mail plist will definitely cause lots of problems, but is recoverable.
    The plist files are stored in the /Users/username/Library/Preferences/ folder. They usually have the naming convention of com.company.programname.plist.
    A simple troubleshooting technique is to move a suspect plist file out of the Preferences folder and start up the app, again. It will re-create the plist from scratch.
    In your case, I would try the com.apple.dock.plist. You can use Activity Monitor to kill the Dock app and it will restart. Or, you can log out and log back in.
    There is a new file with Leopard called com.apple.dock.db. I haven't figured out what it does, but you might try moving it out. If anything gets worse, you can move the old file back in replacing the newly created one.
    This all sound somewhat odd, so I don't know if this will help.

  • Why does the revealed image flicker when using the Show/Hide feature?

    I started using the Show/Hide Button and Forms function in InDesign CS6 and have had some peculiar things happen. I was mocking up some samples and on the swf version if you hover over the left side of the blue rectangle all is fine but if you move to the right side of the blue rectangle the image starts to flicker. When you hover over the red rectangle the pop-up image just flickers constantly. I guess there must be some issue with having the button for a revealed image under some portion of the revealed image. See: http://www.idugsf.com/_a/FI_BookSamples.html .
    The problem went away when the button and the revealed image did not overlap.
    This problem didn't occur with another file I had originally created in CS5.
    On the pdf version the buttons which are on their own layer behind the revealed image moved to the front in the pdf: http://www.idugsf.com/_a/FI_BookSamples.pdf
    [email protected]

    Remove the dimensions in the following
    <div class="tooltipContent" id="sprytooltip11">  <img src="pix/1-pp-all-490x480.jpg" width="850" height="750" /></div>
    Gramps

  • HT1386 Sry for disturbing, but i would to ask that how to overcome the problem of synchronising ? Itune showing me that the sync session is failed to start with my Ipad mini. Any ideas about what is going on ?

    Sry for disturbing, but i would to ask that how to overcome the problem of synchronising ? Itune showing me that the sync session is failed to start with my Ipad mini. Any ideas about what is going on ?

    What are you trying to sync?
    I see you are on ios 7.
    I also had upgraded my iPad Mini to ios 7 & then the 1st time I tried to open a Numbers file that was set up to sync w my MacBookPro, I got a warning that I would not be able to sync it any more w my Mac until I upgraded to Mavericks.
    So if you are trying to sync Numbers, Pages or Keynote files between your iPad mini in ios 7 and a Mac that hasn't been upgraded to Mavericks that could be the problem.
    I was very shocked to get that message since I bought Numbers on the iPad so that I could have a particular file on both devices & keep them synced. I had no clue when I upgraded to ios 7 on the iPad Mini that it would make it so the files in the iWorks apps woudln't sync any more.
    So I finally decided to go ahead & upgrade to Mavericks after carefully preparing & updating other software so that it would work w Mavericks. But I got error messages so haven't even been able to download Mavericks & now having 2nd thoughts about doing so.
    iPad mini ios 7
    MacBookPro Mid 2012 Mountain Lion
    iphone 4S ios 6

Maybe you are looking for

  • How can I reset new password in .mac system preferences?

    ...so that I can upgrade to MobileMe. When I type in my new password and hit Enter, or click over to Sync, it insists on remembering the old password, and then I can't sync. The odd thing is, when I enter the new password into .Mac preferences I get

  • HT3702 I'm trying to open payment history due to multiple charge on my card

    I was charge multiple on my credit card that I didn't purchase plus I got charge same items same amount on two credit card my last purchase was on July 29,2013 in the amount of 3$ for the chips of 1200chips on zynga poker

  • Images on web page not clear

    Just got a MacBook Air, running 10.7.3 and noticing that on many web sites (firefox and safari are the same), the images just are not clear. They are a bit fuzzy, and some have some sort of weird border around them. I have attached a screen shot of t

  • How to Disable File Listing of UCM Content in WebCenter

    Hi Experts, We have a WebCenter custom portal application integrate with UCM. UCM hosts all static HTMLs, images, files for download, etc and WebCenter is provided the following link to access the html, images, etc. http://host/PortalApp/content/conn

  • Use of button throughout movie

    Hey, I'm fairly new to Adobe Flash and I've been looking around for an answer to this question so it's either really simple, or I did find something that's hard to answer. I am trying to create an interactive map of the computer lab I work in. Right