How can I trigger an automated event in iCal, when I first start it in the morning, but not if I fire it up later again?

Hey,
I'm trying to fix an issue I had for a while with a automator script I want to use. I added several things it should do, test it, and it works fine. I use it usually as an workflow. But I tried to implement it through an iCal event! Which does not work. (and I checked already in preferences if the turn off all iCal alarms is unchecked) I the workflow basically to open when I first fire up the MacBook, but only once, not when I start it up again later n the day. So I thought about adding the workflow to the startup, but that would open it every time I start my MacBook. How can I get around that? By a iCal event? If yes, how can I fix it, that it starts not at a specific time ( I don't start my computer at the same time every day) but when I first open it.
Thanks for any help.

I'd write an AppleScript, save it as an app, and have it run as a login item. The script would look for a text file saved in, say, <~/Library/Preferences>. If the file didn't exist, it would create it. Each line in the file would contain a date. The script would look for the last line in the file and it would compare it to the current date. If it was older than the current date, the script would execute the workflow, then it would write the current date in the file, and then quit. If it was the current date, it would just quit. This way, the workflow would be executed at login, but only once in every 24 hours.

Similar Messages

  • How can I trigger an onchange event for hidden or never displayed item

    hi -- I have an item that I don't want displayed on my page -- more info than the user wants or needs; call it B. It needs to be
    set by an onchange event from a visible item (A); then, the change of B triggers on onchange to set another item (visible) -- C.
    When B is visible on the page, it all works. If I make it hidden or conditionally never displayed, it doesn't work. From the looks of
    it, B never gets changed.
    How can I trigger this onchange event (from B to set C) with B not visible?
    Thanks,
    Carol

    hi Varad -- Probably more info than you want... but here's the whole chain of events.
    Hope it answers your question.
    C
    **** 1
    In A's html form element attributes (simplified; I took out the irrelevant call to jsLookupValue that sets another item).
    onchange='jsLookupValue($v("P142_SITE_ID"),"site_id","P142_OBJECTTYPE_ID","objecttype_id","hdb_site_syn");'
    **** 2
    jsLookupValue is the following.
    The statement that actually sets the value of B is: $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    function jsLookupValue(source_item_value, source_column_name, dest_item_name, dest_column_name, lookup_table_name){
    // Continue only if there are valid values
    if (valueOf(source_column_name)&&valueOf(dest_item_name)&&valueOf(dest_column_name)&&valueOf(lookup_table_name)){
    //Check to see if the source_item_value is null (either all spaces or empty
    //If it is, set the dest item to null, but only if it's not already --
    //otherwise we get into a loop.
    source_item_value = trim(source_item_value);
    dest_item_value = trim($v(dest_item_name));
    if (source_item_value.length==0) {
    if (dest_item_value.length != 0) {
    $s(dest_item_name, null);
    }else{
    //This is the AJAX call to the Application Process from step 1
    ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=LOOKUP_VALUE',0);
    //Here we are adding that x01 parameter we use in the app process with the value of the objecttype_name field
    ajaxRequest.addParam('x01', source_item_value);
    ajaxRequest.addParam('x02', source_column_name);
    ajaxRequest.addParam('x03', dest_item_name);
    ajaxRequest.addParam('x04', dest_column_name);
    ajaxRequest.addParam('x05', lookup_table_name);
    //Now do the actual AJAX call and put the result in ajaxResponse
    ajaxResponse = ajaxRequest.get();
    //Check if there is a response
    if (ajaxResponse) {
    //We need to format the JSON return string and put it in a JSON object
    // the formatting is done by a function in the external JSON library
    // the jsonobj can be used to retrieve the data returned by the App process
    var jsonobj= ajaxResponse.parseJSON();
    // And finally, we set the DNAME item with the value of the jsonobj.DNAME
    // an array was created in the object with the name row, so that is why you have to include row[0] to retrieve the data
    if (jsonobj.row[0].RETURN_VAL != $v(dest_item_name)) {
    $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    }else{
    } //not setting
    }else{
    alert('No response from app process');
    } //no response
    } //no source item value
    } //no bad nulls
    } //function
    **** 3
    I won't bore you with app process LOOKUP_VALUE. It just builds an sql query that gets the value for B, aliased to RETURN_VAL.

  • How can I move movies from my computer to my iPad? They will play in quicktime but not iTunes

    How can I move movies from my computer to my iPad? They will play with quicktime but not iTunes so I can't sync them

    Th AVPlayerHD works well for playing other video types.  You can transfer the videos via USB in the app tab in iTunes on your computer.  When you open that tab when you have you iPad connected to the computer scroll down and you will see apps listed on the left and a blank on the right.  Click on the app and then click on the add button under the blank window on the right.  Then navigate to the video you want to play and it will transfer it to the iPad.  I have about 14 movies on mine using AVPlayerHD.  works very well.  Also have VLC player (before it was yanked from the app store).  Works about the same.
    You can also get the app Air Video and stream the video to from your computer to the iPad, and even have Theo ad connected to the tv to watch on there.  I do that all the time with my iPhone.  Saves time with not having to sync movies all the time.

  • TS4006 How can I find or track  my iPad mini when it keeps showing offline on the find my iPhone app?

    How can I find or track  my iPad mini when it keeps showing offline on the find my iPhone app?

    You can't. If its offline it can't be tracked. The device needs to be powered on and connected to an Internet connection to be trackable.

  • How can I hide a single event in iCal?

    I'd like to be able to mark the occasional event in iCal private, or hidden from view, but everything else visible. Is this possible?

    I agree, I can post a calendar from Outlook 2007 to my corporate iCal Server marking items as private and thus anyone subscribing to my calendar won't see what the appointment is - only that I have something in my schedule. It'd be something awesome if the Apple iCal could be able to do the same thing.

  • How can I restore my new iMac back to when I first switched it on?

    I was so keen to get my new iMac working that I got my name wrong in the setup and I stupidly skipped the migrate settings step which would have taken everything over from my old Mac.
    How can I get back to how things were when I first switched on so I can go through the whole procedure again - this time the right way?
    Thanks in anticipation.
    GeoffT.
    iMac 24"   Mac OS X (10.4.9)  

    Thanks Matt. Your comments are reassuring.
    But I also need to reset the name that I typed in at the beginning as I started to set up the machine for my business partner (we bought two - one for him, one for me) but he finished up taking the other one. So I need to go back to that first switch-on screen again.
    GeoffT.
    iMac 24"   Mac OS X (10.4.9)  

  • HT1539 I entered the download code for"THE HOST"but instead I got a copy of"Spring Breakers".How can I correct this?  I called a friend that has"Spring Breakers"and the codes are not even remotely alike!!! I did not want to download what I received!!What'

    I entered the correct download code for "THE HOST" but instead got a copy of "SPRING BREAKERS"! All of the prompts identified it as "The Host" but the final product was "Spring Breakers"! I called a friend who has a copy of that movie and the download codes are not even remotely alike!! How can I correct this error? I 'd rather have SyFy that a bubblegum teenager flick!! HELP ME, PLEASE?!

    Hello Old Dogg new tricks,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Best of luck,
    Mario

  • How can I get Home Share to work for iTunes??  I've followed the instructions but one I have activated Home Share, there is no "Shared" heading to link to my other computer.  It (the word "Shared") disappears after I turn on Home Share.

    I followed the instructions, but once I turn on "Home Sharing", the word "Shared" disappears from the left hand column of the iTunes window.  So, where can I link to my other computer so I can share my music??

    Make sure that the iTunes version is updated on your computers that you are using for Home Sharing.  Also, I think that all of the computers have to be on with iTunes pulled up while you are trying to transfer data.
    You have to have Home Sharing turned on with both computers.  If you do have Home Sharing turned on with all of your computers, are your 'Shared' computers all authorized under the same account?  If not, they should be.
    Have you checked 'Share my library on my local network' in preferences?  You should have the box checked for both computers.
    I hope this helps!

  • I forgot the answers to my security questions. how can i retrieve them using others ways aside from my e-mail options because the mails is not coming through? thank you!

    bought my iphone on a second hand shop here in the philippines.i've been using it sice july 2013, but i updated it to the latest version 7.0.4. now, i cant use my iphone because it keeps on saying that im typing the wrong password for my apple ID which is impossible. now, it has been disabbled, requiring not my apple ID but the apple ID of the previous owner. i have no clue or even the shop who sold me the unit who is the first owner who set up the device. it is legaly bought from the store as i previously mentioned and i even have the receit and when i bought it. some suggested to buy a new one. money isnt easy and i just cant throw my phone if the problem is just a software that i think apple must provide the solution. can somebody help me what to do to be abble for me to use my phone again. thank you very much!

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • How can I get my iPad to Sync Automatically when I plug it in. The Option is greyed out.

    My iPad came set to Sync Automatically. At some point I unclicked this Option. Now I would like to reset that option to AutoSync again. The option in iTunes is greyed out and I can not figure out how to get it to come back.

    On the computer's itunes, go to:
    Edit > Preferences > Devices > Deselect Prevent iPods, iPhones and iPads from syncing automatically.
    This should help.....

  • How can I sync movies to my iPod Touch when I get a message saying the movies can not be read or written? I just bought the movies yesterdayfrom iTunes with no problem.

    I purchased four movies from iTunes yesterday and want to sync them to my daughter's new iPod Touch.  I have been able to sync apps, music, contacts, etc. but keep getting a message stating the movies can not be read or written. I was able to sync one movie, a digital copy that I used the code to copy from iTunes earlier today without a problem.  Can anyone help?

    thanks for helping, I am able to watch the movies in iTunes, but, I can't choose the create iPod or iPhone version in the advanced menu.  Do you have any other suggestions?

  • How can I get my photos from my phone when it's asking to restore the handset?

    I've just done a system upgrade on my phone and then it asked to restore.  The thing is I don't want to lose any of my pictures or videos.  Can I get round this?

    nicolafrombasingstoke wrote:
    I've just done a system upgrade on my phone and then it asked to restore.  The thing is I don't want to lose any of my pictures or videos.  Can I get round this?
    Photos are included in the phone's backup. So if you did a backup before the upgrade (which happens automatically) they should be restored when the backup is restored. If you don't have a backup you are out of luck.

  • I mean I don't need a refune yet they didn't take it yet how can I stop it before they do it call candy crush game I love the game but I didn't have to give them my money alright please tell me how thanks:)

    I need help plz. If not it is ok.it was a mistake ok.

    If you have a iCloud account set up you may be able to disable it, I'm not entirely sure about the earlier iPods. Even a poor thief will have already changed your settings. You can report it as stolen and change all passwords associated with this iPod to prevent a thief from accessing your accounts, computer, etc. As for the blackmail stuff, be careful what you have on your devices! Nothing is that secure. Good luck.

  • How can I export/save my iphoto'11 photo book pages as actual images of the pages (jpeg), not PDF?

    I have 'printed' the book as a PDF, but would like to get a jpeg version of each actual page (not the individual photos). So far, I have tried 'exporting', but that gives me each pic individually, sharing-same thing.
    My goal is to upload the finished pages onto a family website.
    Any suggestions?
    Thanks.

    Open the PDF file in Preview and start a Print job.  In the Print window click on the PDF button and then in the resulting menu select Save PDF to iPhoto. That will create a jpg version of each page and import it into an album of your choosing in iPhoto.
    Click to view full size
    This is what you'll get in iPhoto after the import:
    Click to view full size
    Note:  As soon as the book has been processed into iPhoto select all of the pages and use the Photos ➙ Batch Change ➙ Title to Text menu option to rename the pages as "Page " with the option to include a sequential number at the end.  That's because the jpgs that are created have really crazy file names which will make it difficult to get in order if they ever get out of order.
    OT

  • How can i get a app that is free when is asking me to buy the app

    why is it that they show that is a free app when i have to buy it

    What app?

Maybe you are looking for

  • Calendar app wrong date/days

    i have a fully updated iphone 5. My calendar app is showing the date on the wrong day of the week from January 2015 onwards. In yearly view it is OK but is wrong in monthly view. Also in monthly view September 2014 is missing and I have 2 x October 2

  • HR LDB PNP and customer infotypes in 640

    Hello, I encountered the following problem during an upgrade from 4.6C to SAP ERP Central Component 5.0. When using logical database PNP and customer infotypes the syntax check produces the following syntax error: - INCLUDE report "%_HR9731" not foun

  • Quicktime not working properly in Mountain Lion

    Hi, I have a Macbook Pro with plenty of RAM and processing. For some reason, Apple has decided we need two different Quicktime Players, but one of mine won't work. Any time I get a video for version 10.2 (dark blue and grey Quicktime), everything wor

  • Receiver HTTP Adapter Dynamic Query String

    Hello, I am using HTTP Adapter on receiver side. My URL is  <b>http://server:port/abc/def?xyz=123&luw=345</b> When I am using Adapter specific attributes. If I check apply Parameters and pass Parameter 1 as xyz and Parameter 2 as luw and pass their v

  • HTML for head is in the next release

    Hi, Do you know when the HTML for <head> will be ready? This is a real pain to have to update all of this again when you make a change to a page.