Is there a way to trigger an action on or after a specific date?

Hi,
I wanted to set up AS3 to trigger an action on or after specific dates (quarterly, 1/1, 4/1, 7/1, 10/1). Is this possible?
I can script getting today's date, but I am not sure how to script: if today's date is  greater than or equal to (>=) one of these quarterly dates (greater than is essential since the video may not run on the specified date, so greater than is needed). Year is not needed, since the goal is quarterly action. But, would need to start over each new year, so quarterly action continues each year. Can't seem to get my brain around how to construct this and how to script it.
Any help appreciated.

if you can accept the user's date, you can compare the user's date's time property with your date's time property:
var triggerDate=new Date(2013,0,1);
var userDate=new Date();
if(userDate.time>triggerDate.time){
//do whatever

Similar Messages

  • Is there a way to create an action or keyboard shortcut to set Crop tool to the front window size?

    Is there any way to create an action or keyboard shortcut to set the Crop tool to the front window size in Photoshop CS6?
    I find that I use that several times a day. I got used to it being the top choice in the Crop tool presets menu.
    Thanks.

    It depends on whether you have the cloud version or perpetual license version.
    For the cloud version press  I (eye)
    For the perpectual version press  F

  • Is there any way to trigger BSP Page from ITS..

    Hi,
      is there any way to trigger BSP Page from ITS?
      say for example i have a its service, when i click my its service i want to call BSP Page instead of calling module pool screen.
    thanks,
    Abhay.

    do you want to have a link the ITS page which calls a BSP page or do want a simple call the ITS url should redirect you to BSP page?
    for your explanation i understand that calling a ITS service should automatically redirect to BSP page -  in such a case you can just use url redirection by using meta tag or reidrect using javascript.
    <META HTTP-EQUIV="Refresh"
          CONTENT="5; URL=<BSP page>.htm">
    But i dont understand the reason why you would want to do this.
    Regards
    Raja

  • Is there any way to attach an action to the current tab bar you are in? If so, how?

    Is there any way to attach an action to the current tab bar you are in? If so, how ?
    I am using storyboards.
    Cheers

    Jeff:
    Look at Cyclosaurus' post in this topic: http://discussions.apple.com/thread.jspa?messageID=9273769#9273769. It may address what you're wanting to accomplish.
    OT

  • Is there a way to get a user login record after sleep?

    I know that by opening terminal and typing in "last" (without the quote marks) that it will give me about a 3 week record of who has logged on my computer after shutdowns and restarts.
    What I want to know is this:
    a) Is there a way to get a user login record after the computer only goes to sleep?
    b) is there a way to get the terminal to go back further than just 3 weeks or so for the shutdown/restart records?
    Is there software that might do this???
    Thanks in advance, this is important for me.

    bikinijack wrote:
    Thanks, Dave: so this is what I type in the terminal? "ls -l /var/log/wtmp*" (without the quotes). And how do you unzip something that has been "gzipped"?
    "man gzip" will give you the details for using gzip
    My first question can be explained this way: To get into the computer when it is coming out of sleep you need to type in a password, then it opens to the desktop. Is there a way I can find out the times over the course of a day/week/month that this is being done? i.e., is there a log being made somewhere of when the computer is being opened and signed onto after being asleep?
    When you wake the computer from a sleep, you are not logging in again so there will be
    no record of the event as a "login"
    My computer possibly could be used by a few other people that have access to my computer password (don't ask why) and I basically want to know if they are signing on when I am away from my desk.
    You may want to look at /var/log/asl.log or /var/log/secure.log which contain details of
    authentication attempts (which is what you are doing) and failures.
    I am not asking why you have multiple people accessing your computer with your password --
    but consider setting up separate username, it is a lot easier to manage and you will probably
    not be asking questions like this one.
    Dave

  • Is there a way to specify text-to-speech to dictate a specific line or..

    Hi guys,
    Is there a way to specify text-to-speech to dictate a specific line or page in a pdf file?
    In fact, it would be cool if text-to-speech highlighted each word that is being spoken through out the document during dictation and you could rewind, pause or fastforward the speech in real-time. Is this feature available? if not, can anyone recommend any other programs that can do this?
    thanx in advance

    Is there a way to specify text-to-speech to dictate a specific line or page in a pdf file?
    Yes!
    With fully modern Cocoa applications (like Safari, Preview, TextEdit, and Mail) you can select the line or page and then from the application menu > Services > Speech > Start Speaking Text
    You can also select and then Control-Click on the selection and then pick Speech > Start Speaking Text from the contextual menu. (Works with Safari, TextEdit, and Mail, but not Preview for PDF.)
    In fact, it would be cool if text-to-speech
    highlighted each word that is being spoken through
    out the document during dictation and you could
    rewind, pause or fastforward the speech in real-time.
    That would be cool. Are you looking for an interface enhancement, or would a talking book reader with these features be acceptable?
    Is this feature available?
    No, but you can get somewhat close to this ideal by using VoiceOver and checking Show Caption Panel.
    if not, can anyone recommend any other programs that can do this?
    I have had fair success with the Text Help Read & Write Aloud products.
    http://www.texthelp.com/rwm.asp?q1=products&q2=rwm
    eMac 1.42   Mac OS X (10.4.6)   I paid the going Windows price for a screen reader and got a free computer!

  • Is there any way so that I Being able to clear out old data from the Order

    Hi Friends,
    Is there any way so that I Being able to clear out old data from the Order Gate forecast, tolerance, and confirmed order to date tables on a monthly basis?
    Means I want data in data table for particular time (I want that if suppose today is 13-11-2008 then my data table must contain data from 13-10-2008 to 13-11-2008.
    Is it possible thru ABAP development or thru any t codes ?
    Any pointers will be rewarded.
    Regards

    hi,
    Before archiving you have to put the Deletion flag for the object(May be for PO, MMR etc as per your req.)...
    After that the you use the archiving procedure to archive the docs which are already flagged for deletion...
    For MMR you use the transaction SARA...and its respective object for the archiving....
    You can use the SDN search to see the many threads on it...
    Or use this link as per your req. and make the search...
    http://help.sap.com/saphelp_erp2004/helpdata/EN/75/ee0fa855c811d189900000e8322d00/frameset.htm
    Regards
    Priyanka.P

  • Is there a way to keep iTunes library on AppleTV after sync and then...

    Is there a way to keep iTunes library on AppleTV after syncing with my iTunes library on my MacBookPro and then erasing library on the MBP so that I can save HD space?
    Will they just auto sync and either erase library on AppleTV or copy complete library from AppleTV to MBP?
    Thank you for any insight you can give.

    Is there any change on this with Take 2? I was really hoping I would be able to specify which movies are on both ATV and my computer, and which are only on ATV. I don't have enough disk space on my MBP to store all the movies I want to have on my ATV!

  • Is there a way to find out how many ESS driven updates to data over a perio

    Is there a way to find out how many ESS driven updates to data over a period of time have been done.

    Assuming that all end users are accessing the back end via Portal, we figured out the answer.

  • Is there any way I may set low resources priority for a specific job or even all SQL jobs?

    Is there any way I may set low resources priority for a specific job or even all SQL jobs? 
    Our database is quite big and everything works OK and very fast, except SQL jobs which are used mainly for maintenance purposes.
    I have one specific job which runs for 2 minutes and takes a lot of resources which may affect execution of other stored procedure which should be executed fast.The worst part is that this job has to be executed during the most active working hours. It does
    not matter for me how long will it take to execute this job. I just do not want it to use so much resources.
    Also I noticed when SQL backup job (takes about 4 minute) is scheduled it also takes a lot of resources and sometimes because of that I am receiving "login timeout" error on my web site.

     depending on you sql server version and edition, you can use resource governor and limit the cpu and memory.
    in most typical cases , you can use the session user name and times and classify the how much cpu and memory they can use. refer : https://msdn.microsoft.com/en-us/library/cc645892.aspx
    but in your case, the problem seems to be with the maintenance jobs which could run as sql server service account.
    also, if the backup are third party tool backup, you can specify the priority level and other options etc to make it less priority.
    it is possible to do that even with native backups such as specifying the limiting buffercount, max transfer size, if the server is memory pressured. sometimes, stripping the backups to multiple sets across different devices, could help as well. even though
    stripping the backups can introduce another complexity.
    may be you need to rethink you back up\recovery strategy.
    Hope it Helps!!

  • HT201077 Is there a way to delete files locally, on iPad, after they have been backed up in iCloud, without losing any files?

    Is there a way to delete files locally, on iPad, after they have been backed up in iCloud, without losing any files? Because iCloud is seeming like it actually doesn't back up anything.. Just clogs up all storage space on every device with duplicate images/videos. I am looking for a delete when backed up feature. Does that exist?

    quote:
    Originally posted by:
    Michael Hager
    The problem with any boxed software is that the developers
    can NEVER know how every possible customer will use the software.
    That's why, as a developer, they need to make
    the software have MANY more checkboxes in the options screen to
    allow the user to use the software the way they need to, not the
    way the developers THINK they will need to. Just look at Microsoft
    as a poor example of this--I am never so frustrated as when trying
    to use ANY of their Office products, which make easy tasks
    difficult and do not include some of the most common options that
    competing products have.
    quote:
    The Dreamweaver check out system actually works very well if
    it’s set up properly and administered strictly. If you set it
    up on your testing server with everyone set up on their work
    stations correctly it will tell you who has a file locked for
    editing. Once everyone is working as a team with good supervision
    and division of tasks under a strict policy set by management,
    Dreamweaver will work very well for your purposes. You
    shouldn’t have to lock and unlock files manually since the
    check in-check out function will do it for you nicely. When you are
    satisfied that all is well with the site or particular pages, then
    someone in a managing position can release or authorize release to
    the live site.
    The problem is that I am the only person using
    DW in the organization, everyone else is using Frontpage...blah...
    You and Murray have both alluded to a separate "testing"
    server. Perhaps I can make this system work by setting up the
    testing server as a duplicate of the development server in my site
    manager. Then I would have to manually publish the files from the
    testing server to the live production server myself. What a pain!!!
    I can not believe that I am the only person in the world that has a
    setup like this -- it seems very common to me. I would assume most
    government organizations are set up identically as us.
    <sigh>

  • I have an iPhone 4 and I want to upgrade it to iOS 5. Is there any way that I can upgrade the iOS and keep my data and apps?

    I have an iPhone 4 and I want to upgrade it to iOS 5. Is there any way that I can upgrade the iOS and keep my data and apps?

    why would you think you'd lose them?

  • Is there a way to uninstall Legacy and Compatibility Content after installing with Additional Content?

    Is there a way to uninstall Legacy and Compatibility Content after installing with Additional Content?

    Hey Antonio,
    That's a good suggestion, and it's something that we're already planning on addressing in the next release, probably via a service that you can use to view information about patches and notifications -- not only the ones that were known at the time that you installed, but also ones that might have come into existence since then.
    In case you're still looking for the link to that CVI 2009 notification, you can find it here.
    By the way, my world cup sympathies to you -- your guys were robbed.
    Luis

  • Is there a way to trigger batch process via Applescript or Javascript?

    Based on what I've found so far on the internet, the answer is no. The Applescripts I've found so far that attempt to run a batch process don't work for me in either Acrobat Pro 8 or Pro 9.
    I've been using Applescript to automate a process that starts in InDesign (create PDFs), then goes to Acrobat to set open options (I've got a batch process for that but can't find a way to trigger it). If I can get that to work, I'll attempt to automate the task of using a Photoshop droplet to create JPEGs of a specific size from these PDFs.
    I've settled on InDesign CS3 for creating single-page PDFs from a multiple-page document, partly because I could not find a scriptable way to do this in Acrobat. I know just enough about Applescript to be dangerous. I know much less about Javascript.
    Any help would be appreciated.
    Thanks,
    Kevin Stauffer

    Kevin some thing like this for Photoshop should aid you
    set Todays_Date to do shell script "date \"+%d-%m-%y\""
    -- Create new folder to save to
    tell application "Finder"
    set Raster_Images to make new folder at desktop with properties ¬
    {name:"Rasterized PDF's " & Todays_Date}
    end tell
    -- Set Photoshop settings
    tell application "Adobe Photoshop CS2"
    activate
    set display dialogs to never
    set User_Rulers to ruler units of settings
    set ruler units of settings to pixel units
    -- set background color to {class:CMYK color, cyan:0, magenta:0, yellow:0, black:0}
    -- set foreground color to {class:CMYK color, cyan:0, magenta:0, yellow:0, black:100}
    end tell
    -- Get list of PDF's
    set The_Question to "Do you want to include all the subfolders" & return & "within your folder selection?"
    set The_Dialog to display dialog The_Question buttons {"No", "Yes"} default button 1 with icon note
    if button returned of The_Dialog is "Yes" then
    set Input_Folder to choose folder with prompt "Where is the top level folder of PFD's?" without invisibles
    tell application "Finder"
    set File_List to (files of entire contents of Input_Folder whose name extension is "pdf")
    end tell
    else
    tell application "Finder"
    set Input_Folder to choose folder with prompt "Where is the folder of PFD's?" without invisibles
    set File_List to (files of Input_Folder whose name extension is "pdf")
    end tell
    end if
    set File_Count to count of File_List
    if File_Count = 0 then
    display dialog "This folder contains no PDF files to rasterize!" giving up after 2
    end if
    -- Loop through the files in list
    repeat with This_File in File_List
    tell application "Finder"
    set The_File to This_File as alias
    end tell
    -- Tiger (OSX.4) shell call to count the pages
    set Page_Count to my PDF_Pages(POSIX path of The_File)
    if the result is not false then
    -- Loop Photoshop through the page count
    repeat with i from 1 to Page_Count
    tell application "Adobe Photoshop CS2"
    activate
    open The_File as PDF with options ¬
    {class:PDF open options, bits per channel:eight, constrain proportions:true, crop page:trim box, mode:CMYK, page:i, resolution:300, suppress warnings:true, use antialias:true, use page number:true}
    set Doc_Ref to the current document
    tell Doc_Ref
    flatten
    -- Enter your name strings into two enties below
    -- Case sensitive stings
    -- do action "My Action" from "My Action Set"
    -- New file naming options
    set Doc_Name to name
    set ASTID to AppleScript's text item delimiters
    set AppleScript's text item delimiters to " "
    set Doc_Name to text items of Doc_Name
    set AppleScript's text item delimiters to "_"
    set Doc_Name to Doc_Name as string
    set AppleScript's text item delimiters to "-"
    set Doc_Name to text item 1 of Doc_Name
    set AppleScript's text item delimiters to ASTID
    if Page_Count = 1 then
    set New_File_Name to (Raster_Images as string) & Doc_Name & ".tif"
    else
    set File_Number to ""
    repeat until (length of (File_Number as text)) = (length of (Page_Count as text))
    if File_Number = "" then
    set File_Number to i
    else
    set File_Number to "0" & File_Number
    end if
    end repeat
    set New_File_Name to (Raster_Images as string) & Doc_Name & "_" & File_Number & ".tif"
    end if
    end tell
    save Doc_Ref in file New_File_Name as TIFF with options {byte order:Mac OS, embed color profile:false, image compression:LZW, save alpha channels:false, save layers:false}
    close current document without saving
    end tell
    end repeat
    end if
    end repeat
    -- Set ruler units back to user prefs
    tell application "Adobe Photoshop CS2"
    set ruler units of settings to User_Rulers
    end tell
    beep 3
    -- OSX Tiger shell handler
    on PDF_Pages(This_PDF)
    try
    do shell script "/usr/bin/mdls -name kMDItemNumberOfPages" & space & quoted form of This_PDF & " | /usr/bin/grep -o '[0-9]\\+$'"
    on error Error_Message number Error_Number
    if Error_Number is 1 then
    display alert "Page Count Unavailable" message "The page count for " & This_PDF & " is unavailable." giving up after 3
    return false
    else
    display alert "Error " & Error_Number message Error_Message giving up after 3
    return false
    end if
    end try
    end PDF_Pages
    and something like this to perform JavaScript from within AppleScript for Acrobat
    You would be better talking to the JavaScript Experts on how to use addScript() to get your doc level scripts in.
    property Default_Path : (path to desktop folder as Unicode text) as alias
    property JavaScript : "var re = /.*\\/|\\.pdf$/ig; var filename = this.path.replace(re,''); try { for (var i = 0; i < this.numPages; i++) this.extractPages( { nStart: i, cPath: filename+'_' + (i+1) +'.pdf' }); } catch (e) { console.println('Aborted: '+e) }" as text
    set The_PDF to choose file default location Default_Path ¬
    with prompt "Where is the multi-page PDF?" without invisibles
    tell application "Adobe Acrobat 7.0 Professional"
    activate
    open The_PDF
    tell active doc
    do script JavaScript
    close saving yes
    end tell
    end tell

  • Is there a way to transfer advanced actions from one project to another?

    We have several "developers" working on Captivate files.  It looks like I am going to need to do some of the advanced actions on other people's files.  Is there a way to export from mine into theirs

    One of my most urgents feature requests, but not yet there. I suspect it it mostly due to the fact that each object in CP needs its own unique ID, and that makes transferring advanced actions that do often reference objects pretty complicated. Nevertheless expect, hope that it will be possible in a future release.
    Only way to transfer advanced actions is using a template as I demonstrated in this old blog post:
    Template for reusing script
    Your project has to be based on that template to have the advanced actions available. There is no apparent way to make a template out of a CP-file, but usually just changing the extension of the CP-file from cptx to cptl will provide you with a template
    Of course you have to be very careful with the ID's as I started to explain.
    Lilybiri

Maybe you are looking for

  • How do I get an iCloud account on my PC with Windows 7?

    Is there anyway of getting an iCloud account on my PC with Windows 7 without having any Apple products? Thanks in advance, Fox

  • Exception not defined in FM

    Hello Friends, This is my code after calling FM: NUMBER_GET_NEXT     IF sy-subrc <> 0.       MESSAGE E002(ZF) RAISING number_range_error.       EXIT. ENDIF. Here I am getting worning message like-NUMBER_RANGE_ERROR is not defined as an exception in f

  • Ultiboard user footprint doesn't show up in Multisim footprint dialog box

    I can't get Multisim's footprint selector dialog box to access certain parts I made recently in Ultiboard. I've been doing this a long time and never had this problem. Design suite version is 10.1 and OS is Win7 Thanks

  • Search Engine Friendly URL Rewriting

    Hi, Has anyone done any kind of URL rewriting to convert the big, query ridden portal URLs to search engine friendly URLs? eg. Portal URL: http://somedomain/application?event=blah&pageID=blah&blah=blahblahblah gets converted to http://somedomain/page

  • User Exit for line item query

    HI There, I'm not good at ABAP coding and need some help from experts. Working on Line Items Query and enhanced the 0FI_AP_4 to include fields from BSEG table, the fields are: GEBER - Funds FISTAL - Funds Center KOSTL - Cost Center GSBER - Business A