How do I create a workflow to close open programs and then turn off?

I want to create a workflow where any open programs will be closed and then my Mac will turn itself off. How do I do this?
Cheers.

I don't use Automator, but the following Applescript will do it:
set excludedones to {"loginwindow", "Dock", "SystemUIServer", "MirrorAgent", "UniversalAccess", "iCalAlarmScheduler", "System Events"}
tell application "Finder"
set quitlist to the name of every application process whose file type is "APPL"
end tell
repeat with i from 1 to count of quitlist
set aProcess to item i of quitlist
if aProcess is not in excludedones then
try
tell application aProcess to quit
end try
end if
end repeat
tell application "Finder"
shut down
end tell
Actually the last three lines by themselves would probably do it. Of course if any of the applications have open unsaved documents then you will get the usual dialog about do you want to save them.

Similar Messages

  • How do I turn off the Genius app in App Store. I've gone to Settings/Privacy/Location Services/System Services then swiped Genius for apps 'off''. Also, I've gone to Settings/ITunes and App Stores/Click on AppleID/View Apple ID and then turn off Genius.

    How do I turn off the Genius app in App Store. I've gone to Settings/Privacy/Location Services/System Services then swiped Genius for apps 'off''. Also, I've gone to Settings/ITunes and App Stores/Click on AppleID/View Apple ID and then turn off Genius. Still nothing has worked. I'm still stuck with Genius offering the same apps to me. Mind you, once I click on the App Store there is nothing I can do but swipe left and right. There's absolutely nothing at the bottom of the screen like a features tab, nothing. There is, however, a categories button at the top, but that's it. Irrelevant.

    FWIW, I just got off the phone with Apple technical support about this.  I use Genuis for creating playlists, so I don't want to disable it, but Apple support confirmed that there is no way to avoid syncing Genius data without disabling Genius altogether.  I'd read somewhere else that subscribing to iTunes Match might allow you to avoid this, but that is NOT the case, as I've confirmed, and Apple support has confirmed.  For me, it routinely syncs thousands genius of items, so I have to allow a lot of time for my manual syncs.

  • TS2570 when i turn on my computer it stays on the grey screen and then turns off by itself. How can I fix that?

    when i turn on my computer it stays on the grey screen and then turns off by itself. How can I fix that?

    Hi , and a warm welcome to the forums!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive & clear caches.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    Hold alt or option key at bootup, do asny boot choices show up?

  • Ipod won't turn on. When plugged in to computer or the wall it shows the apple logo for a few seconds and then turns off to the low battery symbol with a weird symbol underneath. why? how can i fix this?

    Help

    Hey brittlynnxo,
    Thanks for the question. The following resource provides information for a device that is not responding or turning on:
    iOS: Not responding or does not turn on - Apple Support
    http://support.apple.com/HT201412
    Thanks,
    Matt M.

  • How can I fix my Laptop heats to 90 Degrees then turns off

    How can I fix  my Laptop  HP heats  to 90 Degrees then turns off bought my  new HP Pavillion  in U.S.A  4 years ago just 8 months ago my hp start  shutting down every 40 minutes

    Dear Customer,
    Welcome and Thank You for posting your query on HP Support Forum
    It looks like your Notebook has Overheating Issue due to which the Notebook keeps turning itself OFF
    We will surely assist you with this issue
    Please perform the below shown steps to resolve the issue:
    1. You should clean all the Vents and Openings really good with a can of compressed air
    2. Check if the Fan is spinning when AC Adapter is connected
    3. Boot into the BIOS >> System Configuration >> Device Configuration >> Enable "Fan always ON"
    4. Update the latest BIOS and Graphics Driver
    Please Click Here to find more steps involved in troubleshooting this issue
    Note: Incase even after these steps if the same issue persists we need to remove and reseat the Fan
    Hope this helps, for any further queries reply to the post and feel free to join us again
     **Click the KUDOS star on left to say Thanks**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    Thank You,
    K N R K
    Although I am an HP employee, I am speaking for myself and not for HP

  • How to create a query to see Opening stock and closing stock as on particul

    Hi All,
    How to create a query to see Opening stock and closing stock as on particul.
    Regards
    Albaik

    Hi,
    In BI 0IC_C03 will provide u the  required information and also having standard queries provided by the SAP.
    Plz find the list of Queries provided by the SAP.
    =======================================================================================================
    Inventory turnover      0IC_C01_Q0001
    Range of coverage - quantity      0IC_C01_Q0002
    Range of Coverage - Value      0IC_C01_Q0003
    Range of coverage of finished goods - quantity      0IC_C01_Q0004
    Range of Coverage of Finished Goods - Value      0IC_C01_Q0005
    Range of coverage of raw materials - quantity      0IC_C01_Q0006
    Range of Coverage of Raw Materials - Value      0IC_C01_Q0007
    Obsolete Stock on Hand      0IC_C01_Q0008
    Period-dependent requirement coverage      0IC_C01_Q0009
    Value of stock on hand      0IC_C01_Q0010
    Quantity of stock on hand      0IC_C01_Q0011
    Material consumption      0IC_C01_Q0012
    Material Movements      0IC_C01_Q0013
    Consignment stock: receipts and issues      0IC_C01_Q0014
    Valuated stock: receipts and issues      0IC_C01_Q0015
    Material stock and movements      0IC_C01_Q0016
    Material Movements (Healthcare)      0IC_C01_Q0020
    Material Consumption (Healthcare)      0IC_C01_Q0021
    Material Availability      0IC_C01_Q0022
    Inventory Turnover Frequency (Value)      0IC_C01_Q0023
    Consignment Stock Received and Issued per Unit      0IC_C01_Q0024
    Material Consumption (Quantity)      0IC_C02_Q0001
    Valuated Stock Receipts and Issues (Quantity)      0IC_C02_Q0002
    Range of Valuated Stock (Quantity)      0IC_C02_Q0003
    Inventory Turnover      0IC_C02_Q0004
    Receipt and Issue Consignment Stock at Customer      0IC_C03_Q0001
    Receipt and Issue Quality Inspection Stock      0IC_C03_Q0002
    Vendor Consignment Stock Receipt and Issue      0IC_C03_Q0003
    Receipt and Issue Stock in Transit      0IC_C03_Q0004
    Receipt and Issue of Blocked Stock      0IC_C03_Q0005
    Valuated Stock      0IC_C03_Q0006
    Stock in Quality Inspection      0IC_C03_Q0007
    Stock in Transit      0IC_C03_Q0008
    Blocked Stock      0IC_C03_Q0009
    Vendor Consignment Stock      0IC_C03_Q0010
    Consignment Stock at Customer      0IC_C03_Q0011
    Stock Overview      0IC_C03_Q0012
    Stock Overview (as of 3.1 Content)      0IC_C03_Q0013
    Quantities of Valuated Project Stock (as of 3.1 Content)      0IC_C03_Q0014
    Valuated Stock (as of 3.1 Content)      0IC_C03_Q0015
    Quantities of Valuated Sales Order Stock (as of 2.1 Cont.)      0IC_C03_Q0016
    Inventory Turnover      0IC_C03_Q0017
    Days' Supply      0IC_C03_Q0018
    SUS: Vendor Consignment Stock      0IC_C03_Q0019
    Scrap      0IC_C03_Q0020
    Inventory Aging      0IC_C03_Q0021
    Stock Overview - extended      0IC_C03_Q0022
    Demand Supply Match      0IC_C03_Q0023
    Warehouse Stock Analytics – Inventory Turnover      0IC_C03_Q0024
    Warehouse Analytics - Obsolescence and Variance      0IC_C03_Q0025
    Stock Overview: Materials      0IC_C03_Q0030
    Average Stock Value Over Time      0IC_C03_Q0031
    Stock Overview Over Time      0IC_C03_Q0032
    Range of Coverage Over Time      0IC_C03_Q0033
    ==================================================================================================
    Regards
    Ram.
    Edited by: Ramakanth Deepak Gandepalli on Jan 18, 2010 8:06 AM

  • I just saved my iphoto original library to my external hard drive, now how do i create new space on my hard drive and create a new iphoto library

    i just saved my iphoto original library to my external hard drive, now how do i create new space on my hard drive and create a new iphoto library

    Trash the copy of the library you just moved. Then Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    But do you want to have two iPhoto Libraries? Why not just use the one on the External?

  • Shortly after launching into itunes, it freezes and I get the following message: A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. How do I resolve this issue?

    Shortly after launching itunes, the program freezes and gives me the following message:A problem has caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. The program then closes, even if I have not completed what I am doing. How do I resolve this problem?

    That is what I thought. Cannot figure out how to turn it off, though.
    However, when I talked to her over the phone, she is definitely using Firefox. I tried to access her Internet Explorer, but it has been deactivated, I believe by Firefox.
    She primarily uses the Internet to communicate with her kids, grandkids, and great grandkids. Her e-mail account is with Yahoo Mail, and she uses Firefox to access it. Occasionally, she uses the web to look up information, and may have downloaded a virus.
    Do you think there's something in Yahoo Mail that conflicts with Firefox? Is there some remnant of Internet Explorer that needs to be deactivated? Could she have a virus?
    Any information would be gratefully appreciated. I live 7 hours away, and can only help her over the phone. I'm trying to develop a course of action that I can use with her. I know a little bit about Firefox, so need your expertise.

  • How do I create a new document in Photoshop CC and have it 300 dpi?

    How do I create a new document in Photoshop CC and have it 300 dpi? I am doing digital scrapbooking and need to have my layout in Photoshop 12 x 12 so it is a scrapbook page and 300 dpi and I hope this doesn't sound stupid but I don't even know what dpi means.
    Thank you

    File>New
    Set preset to print or US Paper
    (typing width and height values will change the preset to custom)
    Set width to 12 inches
    set height to 12 inches
    set ppi to 300 (should already be this if you used the print preset)
    Click OK

  • How do I create an unordered list with three items and link to id's

    How do I create an ordered list with three items and linl to id's on my page

    Thanks, I guess what I was really asking, Is there a n option in the insert menu or somewhere where Dreamweaver does it for you.
    I am not clear on what you are wanting DW to do for you?  Is it that you want it to insert a three item unordered list?  No - there's no such function.  You would need to click in Design view where you want the list to go, click on the bulleted list icon on the Property inspector, and then enter the three items separated by carriage returns.  Then you'd have to link each item specifically.
    To enter the named anchors to element ID values, CS5 has no way to do this.  You'd have to enter those links manually.

  • How to trigger a standard workflow task in customizing program?

    Hi experts,
    Does any1 have any ideas about how to trigger a standard workflow task in customizing program? Is there any FMs can be used to do this?
    Thx in advance. Points will be rewarded.
    Vincent

    will followiign Fms help -
    'SWE_EVENT_CREATE'
    SWR_START_WORKFLOW
    SWU_START_WORKFLOW

  • How do I create Outgoing Mail Policie,Outgoing content filters and individual content filters?

    IronPort C160.
    async OS 6.5.3
    Server 1 and server 2 are communicating through ironport.( and also scanning)
    Server 1 we have setup domain abc.lk and yy.abc.lk in same server, this reside on DMZ. same segment ironport is connected,
    Server 2: we have setup separate server int.abc.lk which is resided on internal lan.
    Server 1 and server 2 should have to communicate internally, but server2 should not communicate to outside the world (eg. [email protected])
    How do I create "Outgoing Mail Policies, Outgoing content filters and the individual content filters?
    Note: Now server 1 and server2 are communicating internal and also communicating external ([email protected]), I need server 2 not to communicate external ([email protected]) it should be block and also do not block server 2 communicating to server1
    I have attached diagram also.
    Thanks.
    sumathi.

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman";
    mso-ansi-language:#0400;
    mso-fareast-language:#0400;
    mso-bidi-language:#0400;}
    Hello Sumathi,
    (Thanks for adding a diagram, that helps understanding your situation)
    I think the simplest solution is to create a filter that allows server 2 (based on it's IP) to communicate with the internal domains, and drop the messages when they are targeted to any other domain
    so:
    filter source IP = servers
    condition: message to: is NOT abc.lk or yy.abc.lk
    action: drop message
    hope this helps!
    Steven

  • HT201394 I just updated my iPhone 4s to iso 8.2  How do I create a pass code to open my phone without using my password every time?

    I just updated my iPhone 4s to iso 8.2  How do I create a pass code to open my phone without using my pass word every time?

    I couldn't find the edit button on my original post so I am posting an update here.
    I have gone through more apps and have had good luck on all but one more.  And it's not that the app doesn't work, I am talking about the Yahoo Weather app, It works fine, but when you swipe between cities the screen lags a bit and it sometimes doesn't move between pages the way it should.  On iOS 7.1.2 it was smooth as butter but on iOS 8.0, not so much.  I will post a note in the app store to let them know.  I really like the Yahoo app better than the new stock app.
    I have been going through my games and they all work fine. Angry Birds (Original and Stella), Canabalt, Minecraft, Bejeweled 2, Silly Walks, PopWords, Doodle Jump, Deep Green all seem to work just fine. 
    Starbucks app works as it should. 
    I will stop back again next week after I have had the weekend to play with it in detail and post my thoughts again.

  • Word document created by Workflows do not open

    We are using Sharepoint Online (2013 version) and sharepoint Designer 2013
    We have a requirement by which we would like to update a 'Word template' with the metadata information from a Document Set.  A word document is created after the workflow executes, but the
    created document is corrupt.
    It does not open in Word Web App and when I open it using Word, I get errors.
    I have Word 2010 installed on my machine. Can this be some kind of incompatibility?
    I was going through some threads in this forum and noticed that this problem has been reported before also.
    Is this some kind of a known issue when creating documents using Designer workflows?
    What will be the alternate solution to meet this requirement
     Any suggestions in this regard would be helpful
    Regards,
    Maneesh Agrawal

    Hi,
    According to your post, my understanding is that the word documents created by workflow could not open.
    Did the issue occur in other libraries? You can create a new workflow, then check whether it works.
    You can also use the Copy item action for a workaround.
     Here is what you can try.
    1. Have your template in a folder that is hidden from your views.
    2. Copy the template file with a name of your choice using "Copy list item" action
    3. Use "Update List Item" action to change the properties.
    For more information:
    http://community.office365.com/en-us/forums/154/t/155334.aspx
    As this is the forum for the SharePoint server, I’m not familiar with the SharePoint online.
    For this issue, you can also post your question to the forum for SharePoint Online:
    http://community.office365.com/en-us/forums/154.aspx.
    More experts will assist you, then you will get more information relation to SharePoint Online.
    Thank you for your understanding and support
    Thanks & Regards,
    Jason 
    Jason Guo
    TechNet Community Support

  • How do I create a digital book that fits tablets and computer monitor sizes?

    How do I create a digital book that fits tablets and computer monitor sizes?
    Example: An 8.5 X 11, 2 column Word document with pictures, approximately 100 pages.
    Must I also publish the book in a 5X8 format or does Acrobat have something that will do that for me?

    Starting at the end:
    - When the movie or tv show does transfer onto your iphone/ipod touch you will be able to see it in the expanded view of your device in the "DEVICES" section.
    - If the files are not on your device, then:
         -- confirm you have SD or HD-SD video. HD-only content will not play and probably will not even sync. iTunes seems to reliably have SD versions with their HD distributions so this should not be an issue
         -- confirm you are synch-ing the content to the ipod device by browsing the DEVICE view's Movie or TV Show tabs to confirm the movie or episode is 'checked'
    - If the files are on the iPod and you cannot find them, check your Settings: General for Restrictions.  If you restrict, for example the movies to "G" rating. PG and higher movies will sync but you will not be able to find them on the iPod!

Maybe you are looking for