Remote Desktop - Cmd+D - save without closing question

I'm trying to write a script that will allow me to quit an application (SketchBookExpress) without saving changes.  I'm having trouble with the syntax for the "Don't Save" (cmd+d).  The script runs but stops at the on screen Save/Canel/Don't Save dialog box. 
What I have tried is the following:
osascript -e 'tell application "SketchBookExpress" to activate';
osascript -e 'tell application "SketchBookExpress" to quit';
osascript -e 'tell application "System Events" to delay 0.5';
osascript -e 'tell application "System Events" to keystroke "d" using {command down}';
And I've tried:
osascript -e 'tell application "SketchBookExpress" to quit';
osascript -e 'tell application "System Events" to delay 0.5';
osascript -e 'tell application "System Events" to key down command';
osascript -e 'tell application "System Events" to keystroke "d"';
And, I've also tried:
osascript -e 'tell application "SketchBookExpress" to quit';
osascript -e 'tell application "System Events" to delay 0.5';
osascript -e 'tell application "System Events" to to keystroke "d" using {command}';
I'm very new to Remote Desktop and AppleScript and would appreciate any help you can provide about how to close an app without saving it.
Thanks.

I think you need to turn this on its head.
SketchBook Express is not scriptable, so you can't use the 'normal' method, which would be:
tell application "SketchBook Express" to quit saving no
The problem with your approach is that AppleScript is serial - each command is executed in turn, so it's waiting for the app to quit before executing the next command (unless you run all these commands in parallel, but that's a different issue.
However, there's a simpler solution to your problem:
killall SketchBookExpress
This sends the Kill command to the app, quitting it, bypassing the whole 'Save changes?' process.
This is a standard shell command, so you don't need AppleScript (or osascript) to run it. If you do want to wrap this in a larger script, just use 'do shell script':
do shell script "killall SketchBookExpress"

Similar Messages

  • How to license remote desktop services in 2012 without a deployment?!?!

    Am I crazy or is there no way to license a 2012 RDS server? I don't want to deploy a gateway or a connection broker. My servers are on a domain and I just want to point it to a license server for the CALs (per user).
    Why can't I seem to do this and 2012 REQUIRES the use of some scaled out deployment?
    what am I missing?

    Hi,
    You can Specify the name of the RD Licensing server and set the licensing mode using group policy.  For example, you could use gpedit.msc on the server and modify the setting under the following path:
    Computer Configuration\ Administrative Templates\ Windows Components\ Remote Desktop Services\ Remote Desktop Session Host\ Licensing
    -TP

  • Remote Desktop Connection Expert Question...

    I am looking for someone with a lot of experience with Windows Remote Desktop Connection to answer a basic question or two...
    I have a WireShark capture (only one side unfortunately) which shows 880 MBytes sent from the client running the Remote Desktop Connection, to the host; but I have no WireShark capture of the packet volume coming from the host to the client IP address. The
    capture is for a period spanning 32 hours. I am being asked to try and determine (guestimate) the amount of data that might have been sent from the host to the client... I know this is a real out there question; which is why I'm looking for someone with
    real Remote Desktop Connection experience.  
     Given that if the volume of traffic from the client to the host is 880MBytes over 32 hours; is there any way at all of guessing how much might have been sent from the host to the client?
    Please be kind, this is important and I am presenting all of the information I have.
    Thank you!

    Hi,
    Agreed with T.Murr here. Only based on the networks traces from one way connection, is hard to determine what happens on the other side.
    Besides, hope the following information would be helpful here:
    Top 10 RDP Protocol Misconceptions – Part 1
    Best regards
    Michael Shao
    TechNet Community Support

  • Remote Desktop Session Host on Server 2012 not domain-joined

    I have a server 2012 which is running Remote Desktop Session Host role without the Connection Broker like described here:
    http://support.microsoft.com/en-us/kb/2833839
    Now the client would like the Network Level Authentication (NLA) disabled. And since server 2012 does not have the Remote Desktop Session Host Configuration tool, I have to use the server manager console.
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/630cc818-69b0-4e1c-8d65-1b895b20e203/where-is-the-remote-desktop-session-host-configuration-tool-in-server-2012-?forum=winserverTS
    But when I go to the remote Desktop Services of Server manager, it says “You are currently logged on as local administrator on the computer. You must be logged on as a domain user to manage servers and collections.”
    So I tried finding some Powershell cmdlet could help me with the problem. I guess
    Get-RDServer
    or Set-RDSessionCollectionConfiguration would be the ones but I can’t seem to make them work.
    Any help, or a hint that I going in the right direction or not?

    Hi,
    Have you configure the certificate for your server?
    Add the user under Remote Desktop user local group, configure FQDN name of server. Please see that if we are using RDS server in workgroup then most of the tools provided to make managing/configuring RDSH servers easier in 2012 will not work in a workgroup
    configuration including some PowerShell command. You can check the below article for information.
    Deploying a RDSH Server in a Workgroup – RDS 2012 R2
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • When I am using remote desktop connection from PC1 to PC2 and if Firefox has opened before remote connection I will see only black screen in Firefox window on PC2. Os WinXP prof Sp3. If I run FF on PC2 remotely, FF works perfectly.

    I am using an integrated feature Remote Desktop connection on WinXP without any additional software. Connection through internal LAN, so speed is very fast.

    Hi,
    You can try to toggle the various options in the '''Experience''' tab of RD.

  • How to uninstall ? Remote Desktop Licensing (RDS CALs)

    Hi, Support
    we need to help about how to uninstall Remote Desktop Licensing (RDS CALs) without re-install OS
    we using windows server 2012 R2, we tried to removed role of Remote Desktop services and re-installed role again but the old RDS licensing still running and keep warning license will expire
    tried to Deactivate Server and re-install license but got the error as the picture attached
    Thank you for your try to help.
    Puibds.

    Hi,
    I cannot see the screenshot, would you please upload it again? Also, more details about the error is appreciated.
    Use SkyDrive to post screen shot/picture.
    http://social.technet.microsoft.com/Forums/en-US/w7itproui/thread/4fc10639-02db-4665-993a-08d865088d65
    Regarding the issue, the Microsoft Remote Desktop Licensing website might help you.
    https://activate.microsoft.com/
    Move Remote Desktop Licensing to a New Server
    http://technet.microsoft.com/en-us/library/cc730776.aspx
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Cann't see outlook on remote desktop

    I an login to my work PC using microsoft remote desktop I installed on my mac but it doesn't recognize word, excel and outlook in my remote desktop window.

    This forum is for questions about Apple Remote Desktop, Apple's program for managing networked Macs. If you're using Microsoft's Remote Desktop Connection Client for Mac, you'll be most likely to get help in Microsoft's own forums.
    Regards.

  • Remote desktop problem @ MSI P55 GD-65

    hello guys. i just bought this board with intel i7 860 and install windows server 2003 on it.
    like my previous system, i have a problem when connecting to my pc using remote desktop from outside, it will become "black screen" or "blank screen" after login. after several minutes, disconnected with reason: remote desktop disconnected.
    i had experienced the same problem with my asus s755 motherboard with q9550, and someone ask me to enable acpi 2.0 inside the bios. after doing that, i finally can remote desktop my pc from outside.
    the question is, i don't see any acpi 2.0 enable/disable inside msi p55 gd-65 bios. or is that anything i missed out
    thank you in advance.

    UPDATED: already format & install windows using AHCI mode. now can remote desktop. thank you for the solution 
    - PROBLEM SOLVED -

  • OS X Microsoft Remote Desktop - Remapping shortcut CMD+W doesn't work as intended

    Seeing the follwing issue in Microsoft Remote Desktop on OS X:
    Changing shortcut for Close (window) CMD+W for the application in OS X System Preferences -> Keyboard -> Shortcuts doesn't disable the original CMD+W shortcut as is expected. After changing, CMD+W is still closing windows.
    This is working as expected for changing Quit Microsoft Remote Desktop from CMD+Q to other shortcut, where CMD+Q is not quitting the application after the change has been made. 
    This is unfortunate, as my "instinct" to quit applications on remote desktop when working from my Mac is to use CMD+W. This instead closes the remote desktop connection. 

    Hi Kristoffer,
    Since we are not familiar with Mac devices, please refer to Mac forums below to get more proffsional support.
    More information for you:
    Mac Forums
    http://macforums.com/
    How to Remap Any Keyboard Shortcut in Mac OS X
    http://lifehacker.com/5720087/how-to-remap-any-keyboard-shortcut-in-mac-os-x
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • REMOTE DESKTOP CONNECTION (Questions For Experts)

    Q1) Is it possible to connect remotely to a computer even if the user is in one country and computer is in another (without internet? If Yes Please tell HOW.
    Q2) Is it possible to use hardware like printer while in remote connection with a tab or  lets say I am connected with a tablet which has a USB port so if I connect a USB in my TAB will it work for the remote
    desktop? (usb connected to the tab but should work as if its connected to remote computer -any possibility) If Yes Please Tell how to implement.
    Q3) For ex. If I am connected to a remote computer and since my computer is not good for gaming and I want to use the remote computer to play games while the DVD is in my physical computer.....Is there any possibility
    FINAL QUESTION : Can I connect to windows with an android or IOS devices without internet (PLEASE TELL HOW IF POSSIBLE) and I want to use my local Internet is the remote computer.
    Friends whosoever has any knowledge regarding any question please answer me, help required. I will be really thankful to you . 

    A1- its possible to establish a remote desktop connection even if the user and remote computer in differerent countries but NOT possible without internet coonection... as you will have to use public ip of remote computer.
    A2- To redirect devices and resources
    Open Remote Desktop Connection by clicking the Start button , In the search box, type Remote
    Desktop Connection, and then, in the list of results, click Remote Desktop Connection.
    Click Options, and then click the Local
    Resources tab.
    Under Local devices and resources, select the devices or resources you want to redirect.
    To see additional devices, or to redirect Plug and Play devices or drives and devices that you plug in later, click More.
    To redirect supported Plug and Play devices, under Local devices and resources, double-click Other
    supported Plug and Play (PnP) devices.
    The Plug and Play devices that support redirection and are currently plugged in appear in this list.
    To redirect supported USB devices, under Local devices and resources, double-click Other
    supported RemoteFX USB devices. The USB devices that support redirection and are currently plugged in appear in this list.
    Select the check box next to each device that you want to redirect.
    To automatically redirect drives or devices that you plug in or connect to in the future, under Local devices and
    resources, double-click Drives, and then click Drives
    that I plug in later.
    – or –
    Double-click Other supported Plug and Play (PnP) devices, and then click Devices
    that I plug in later.
    A3 - not possible to mountDVD drive on remote desktop.
    Yes you can establish remote desktop connection from android... there is an app called, Microsoft Remote desktop app, its very good , ı use it myself too...

  • Can I use System Center 2012 Endpoint Protection in "Windows Server Remote Desktop Session Host" without buy the license ?

    Can I use System Center 2012 Endpoint Protection in Azure Virtual Machine Gallary's "Windows Server Remote Desktop Session Host" without buy the System Center 2012 Endpoint Protection license ?
    I want to protect my Azure RemoteApp against the malware.
    System Center 2012 Endpoint Protection installed Azure Virtual Machine Gallary's "Windows Server Remote Desktop Session Host".
    Now, I try to build Azure RemoteApp template by using the  Azure Virtual Machine Gallary's "Windows Server Remote Desktop Session Host" .
    Regards,
    Yoshihiro Kawabata

    Hi Yoshihiro,
    Unless and until Microsoft modifies the license terms for System Center 2012 Endpoint Protection and/or modifies the Online Services Terms (OST) and/or other document explicitly saying that use is included with the Azure RemoteApp (ARA) monthly
    fee I recommend you assume as that it is
    not included and license it separately for ARA if that is even possible, which is a separate question.
    For licensing it is best to be cautious and make decisions based on the official documents that are available that govern use of the software and services involved.  At this moment I'm not able to find a Microsoft document that grants use of System
    Center 2012 Endpoint Protection with Azure RemoteApp.
    When I first used the gallery template and noticed that Endpoint Protection was installed within it I had the same question as you.  I will update this thread if/when I obtain more information.
    -TP

  • Installation issue - using a remote server without using remote desktop or citrix

    Hello Experts..
    We have a client who wants to install SAP Client (SAP 9 PL 11) in their local machines, but connecting to a remote server. They want to avoid connecting through Remote Desktop or Citrix.They already installed SAP clients in local pc's and when they select the server, they already configured it to a server located overseas. We succed on achieve the connection, but the performance is really poor (sometimes it takes about 2 minutes to open a simple menu in SAP).
    We ran internet speed tests in the client's office and in the server, and both results were more than satisfactory. But we couldn't come up with a reason for this enviroment works properly..
    The question is... Is this kind of enviroment supported by SAP?? Do you know about any alternative to connect from the local PC to a remote server without using remote desktop or citrix??
    Thanks in advance...
    Raúl Fragueiro

    Hi,
    I assumed you are using VPN connection right?
    In your scenario that is normal since the GUI of SAP B1 is not built for type of connection compare
    to SAP ERP GUI.
    The only SAP supported type of remote connection is either Terminal Server or Citrix.
    In our own scenario we are using Terminal Server and we are very satisfied. We have used
    this between to different cities. This is also prevents data corruption cause by intermittent
    internet connection.
    Hoping you will be convinced of using Terminal Server or Citrix.
    By the way, a quick question, why are you hesitant to use RDC or Citrix?
    For overview, if your remote requirement is just simple and basic you may use Terminal Server.
    The implementation of  this is very fast and simple also, what you need is only a license.
    If complex and advance features connection requirement connection use Citrix.
    For better understanding you may search from the site for the difference of the two.
    Thanks.
    Regards,
    Clint

  • How can I deploy my AAMEE without Apple Remote Desktop?

    Hi everyone,
    I created a build for Adobe CS6 Production Premium for Mac with the serial number embedded, along with the current updates. All is well with that; however, this is the issue that I am having:
    I have tried to test the build on a local machine (the computer I created the build on) and was able to install the package with no issues; however, when I try to deploy build onto a networked machine, it doesn't work.
    I have read through the AAMEE Reference Guide and have read (if I am not mistaken) that for CS6, you can only deploy an AAMEE build through Apple Remote Desktop onto multiple machines. I have also read that you would need Apple Remote Desktop on all of the machines you want the build to deploy on.
    If that is case, if I have read the guide correctly, what is the point of deploying the build through a network if you have to still install ARD onto all the machines you want the software one? How can you get around this to be able to deploy your AAMEE successfully onto a network on machines?
    When I tried it last night on one network Mac with ARD, I received the error message for "Validating packages...". I'm not sure what that means because the build works perfectly on local machine.
    Any ideas would help as far as deploying the build on a network without using ARD, or really, just a simpler alternative that works?
    PLEASE HELP.
    Thanks.

    Hi,
    You can deploy package using any of these tools - ARD, SSH, Casper suite, Absolute manage, Land desk..and may be more but we have only tried these.
    We have mentioned ARD as an example, but other standard tools can be very well used for deploying package. and there is no need to have ARD installed on all machines where you want to deploy the package, but only on admin machine.
    can you please let me know - which client OS are you trying to deploy the package and whether the client machine is logged or logged in? please forward install.log if you are facing the error.
    thanks,
    Rahul | [email protected]

  • Remote desktop connection manager on windows 8.1, can't connect to windows server 2012 R2, Socket closed

    remote desktop connection manager on windows 8.1, can't connect to windows server 2012 R2, Socket closed each time i try to open remote connection to the server,
    does remote desktop connection manager V2.2 not compatible with windows 8.1, and if so, is there are any other compatible versions
    or what's the problem,
    Mahmoud Sabry IT System Engineer

    this issue maybe will be fix by latest version, we still waiting for it
    maybe your issue can be fix using this methods
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/61f218a5-5ef8-49da-a035-90cdd64fc9a0/problem-with-remote-desktop-connection-manager-error-3334?forum=winserverTS
    http://shawn.meunier.com/?p=1#comment-43

  • Questions regarding Outlook Web App, Remote Desktop, Remote Web Access and VPN Access

    Hi there,
    I want to ask a series of questions regarding Outlook Web App, Remote Desktop, Remote Web Access and VPN access and was hoping whether you could help me. Below are my questions to ask you.
    Outlook Web App - What do I need to configure in order to get my Exchange account to work with the OWA app on my iPhone? Is Office 360 required on the server that hosts Outlook Web App in our organisation? When I configure the settings and
    connect I get the following message "couldn't connect -  We couldn't connect to the server. Check your information and make sure it's correct." I can connect with other devices using Outlook Web App.
    Remote Desktop - What do I need to configure in order to connect to my computer at work using Remote Desktop on my Windows Phone? When I configure the settings and connect I get the following message "Connection error - We couldn't connect
    to the remote PC. Make sure the PC is turned on and connected to the network, and that remote access is enabled. Inquiring minds may find this error code helpful: 0x204" I can connect with other devices using Remote Desktop. There are currently no
    RD Server settings in the Remote Desktop app on the Windows Phone and the only way I'm to connect to my PC at work is via Remote Desktop and not to be confused with the one by Microsoft, however the app is on a trial basis and times out every 5 minutes and
    can only be used once every hour unless I purchased the app for £2.99 off the App Store but would ideally like to use the Microsoft Remote Desktop app though.
    Remote Web Access - What do I need to configure in order to get Remote Web Access on my Windows Phone using a URL? When I log in using a URL I get the following message "There is a problem with this Web page. Please contact the person who manages
    the server" I can connect with other devices using Remote Web Access. Also how do you enable the background option for Remote Web Access? I know how to do this in Remote Desktop but not in Remote Web Access. Remote Web Access works on PCs regardless
    being onsite and offsite and on my iPhone, the same issue also occurs with my Nokia 5230s regardless of whether I'm using Opera Mobile or Mini or the latest Nokia Browser.
    VPN access - How do you configure VPN access on a Windows Phone using VPN? I cannot find the protocols PPTP, L2TP, SSTP and IPsec in order to configure VPN access on the Windows Phone apart from IKEv2.
    Many thanks,
    RocknRollTim

    Any help would be much appreciated.
    Kind regards,
    RocknRollTim

Maybe you are looking for

  • Level 1 alerts not working

    Hello, I have very recently started using a Q5 as my work phone (on 10.2.1.2102). I receive many emails, some of which I need to be alerted about urgently. So to do this I believe I need to use the Priority Hub. I have set up a priority hub rule to f

  • Reinstall Photoshop Elements

    I have to reinstall Photoshop Elements 11 and Premiere 11 and have NO DISK. I don`t need version 12. How can I do ?? RENZO

  • Updating software for iPod Touch Model MC086LL

    The current software on my iPod Touch is 4.2.1 and I would like to update it to the most recent software or to the 4.3 version at the very least. However, when I click check for software I receive a message indicateing that my software version is upt

  • IPhone 5 sleep/wake button issue.

    I got my iPhone 5 from Italy the launch day of the device in Europe. I have been using it now for 3 month and it is doing great. But i've been facing an issue that is really annoying. When i am using the phone or want to lock it or vice versa, the sl

  • I have a new macbook pro lion, have a latest version of flash player but still videos play with black screen.  Please help. Thanks

    Hello everyone, I have checked and tried some advices here on "discussions", about playing video on youtube for example on a MacBook Pro lion.  I have the latest Flash player but it still doesn't work.  Please help.  Thanks in advance..