How to Read a Property called "due date"

I want to create a AppleScript that reads the to dos in the Today list of Things and display a Growl message which works but then I wanted to put into the title the due date. In the the 'Open Dictionary" for Things' To Do class there is a property called 'due date'. But when I try to read it out I cannot compile the script:
set taskDueDate to due date of taskItem
I get this dialog box error:
Syntax Error: Expected end of line, etc. but found class name.
and the cursor ends up on the 'date' token.
Any idea how to access that property?
Thanks - Andy

I added this line but it did not work for me either.
Here is the entire script (which I have taken from the Things wiki):
-- Checks to see if GrowlHelperApp is running, then registers this script with Growl
tell application "System Events"
if application process "GrowlHelperApp" exists then
tell application "GrowlHelperApp" to register as application "Things" all notifications {"Reminder"} default notifications {"Reminder"} icon of application "Things"
end if
end tell
tell application "System Events"
if application process "Things" exists then
tell application "Things"
set todayTasksCount to (count to do of list "Today")
set todayTasks to to dos of list "Today"
end tell
if todayTasksCount is greater than 0 then
set fullTaskName to ""
set fullTaskTitle to ""
repeat with taskItem in todayTasks
set taskName to name of taskItem
set fullTaskName to fullTaskName & "; " & taskName
set taskDueDate to current date
-- get due date of to do 1
set taskDueDate to due date of taskItem
set fullTaskTitle to "Reminder: " & taskDueDate
-- tell application "GrowlHelperApp" to notify with name "Reminder" title "Reminder" description taskName application name "Things" icon of application "Things"
tell application "GrowlHelperApp" to notify with name "Reminder" title fullTaskTitle description taskName application name "Things" icon of application "Things"
end repeat
end if
end if
end tell
Let me know if you have any ideas.
BTW I use AppleScript Editor 2.3 (118) and AppleScript 2.1.2.

Similar Messages

  • How to split the debit memo due date (Cr. student recievable)?

    How to split the debit memo due date (Cr. student recievable)?
    I have to pay student back like a installment plan (out going payment).
    I tried installment plan but it is't work for a credit side.

    Hi,
    Thanks for your answer.
    (1) To use FPE1, I understand but it has to do 2 documents for this solution.
    Old doc.
          Dr. Revenue          500
              Cr. student A/R 500
    1st Create new doc
        Dr. student A/R  500
                  Cr. student A/R due 1 250
                       student A/R due 2  250
    2nd  Manual clearing (old doc vs new doc).
          Dr. studen A/R  500
                Cr student A/R 500
    (2) To use due date schedule
    We use this one in fee calculation, It can be debit side or credit side. I don't know it depend on booked-cancelled module.
    In the debit side we need to invoice student just one due.
    So, I can't use this solution.

  • How to read the pop-dialog window data in adf

    HI All,
    Using the jdev 11.1.1.6.
    I have two questions here :
    1) How to read the selected table row data from the Pop -dialog window .
    2)hOw can i forward to another URL view/view after selecting the data on dialog window and then click 'ok".
    NOte : One of the blog says ' we cant apply the action and actionListener on button ,if we apply showPopupbehavious ,SO how can i forard to another page/URL view ? ,
    scenario:
    Upon click of some button , infomration ll be displayed on pop-dialog window and then user will select the any one of the row and click "OK"
    . based on some data check i should forward it to the view/urlView .
    any hits highly appriciated
    thanks

    1) How to read the selected table row data from the Pop -dialog window .simple . get the employeevo and jobvo with relationship(fk or association/viewlink) drop the employee vo as af:table. show a detail icons at the end of column. make popup with show popup behaviour with lazyuncached drop the af:dialog it wiil show the details in job of concern employee
    2)hOw can i forward to another URL view/view after selecting the data on dialog window and then click 'ok".
    NOte : One of the blog says ' we cant apply the action and actionListener on button ,if we apply showPopupbehavious ,SO how can i forard to another page/URL view ? ,can you show the blo url to me.
    grasp things.
    http://hazem-adf-tips.blogspot.in/
    https://blogs.oracle.com/jdeveloperpm/entry/how-to_efficiently_redirect_to_an_adf_faces_view_using_adf_controller
    http://adf-lk.blogspot.in/2011/06/oracle-adf-how-to-redirect-url-in-bean.html
    http://adfdeveloper.blogspot.in/2011/07/adf-auto-redirect-while-still-passing.html
    http://www.slideshare.net/baigsorcl/oracle-adf-task-flows-for-beginners
    http://www.techartifact.com/blogs/2012/03/adf-jsf-some-handy-code-for-backing-beans.html

  • How to access an action's Due Date through the GP API

    I'm new to the GP API, and I would like to know how can I get/set an action's due date and notifications at runtime.
    Is it possible to create new actions and attach them to a process?
    Thanks in advance

    Thanks for your reply. You know? I already looked at those documents before, but I couldn't find the right API to acomplish my requirement.
    What I've found over and over is how to retrieve the notifications belonging to the process. But these are not the notifications that I need. Like the post's title reads, I need the <i>Activities/Actions</i> notifications.
    I read there's a method in the <i>NotificationManager</i> API to do so, but so far I've only manage to get a <i>NullPointerException</i>
    Here's the code:
    String processId = executionContext.getProcessId();
    String activityId = executionContext.getTaskId();
    IGPNotificationInstance notificationInstance =
            ntfm.retrieveNotification(
                    processId, activityId, notifId);
    String idNotificacion = "";
    if (notificationInstance != null) {
        deadline = notificationInstance.getDeadline();
    The notification ID comes from watching the faulty notifications in the queue manager (so it's hard-coded)
    It doesn't matter what property/method I try to access from the <i>notificationInstance </i>object. I get a <i>NullPointerException</i>.

  • How to use a property from other data source

    Scenario: we have 2 datasources, that each have their own set of records having different properties. What I need to do is grab 1 property that exists in all records of 1 of the datasources and display it in the records of the other datasource. There is 1 "common" property (called by different names) in the records of both Data Sources, that have the same value; so this property could be the link between those records even though they belong to 2 different Data Sources.
    Here's a simple example:
    Data Source " Department" has records that have the properties: 'Name', 'Age' and 'Nationality'.
    Data Source "Staff" has records that have the properties:'Staff_name', 'Position'.
    The 'Name' and 'Staff_name' have the same values, and can be used to link the 2 records.
    I'd like to get the records in the 'Department' data souce to also contain the property 'Position" from the "Staff" datasource .
    Is there a manipulator that can do this?
    Thanks!
    J

    Thanks Pravin,
    But I don't want to join all data from the 2 datasources - I just want one property from one data source to appear in the records of the other data source.

  • TS4000 How do I organize tasks by due date in iCloud

    I recently began syncing my Outlook task list to my iPhone via iCloud.  All the tasks are there, but there is no order to them.  It's just a random list of tasks.  I need to organize them by due date but I have not figured out how to do that.  Does anyone have a solution?

    dswalston wrote:
    How do I organize the photos on a PC? I can download them, but in iTunes I don't have a way to work with the photos - and I can't figure out how I can organize using my PC Windows Explorer.
    As you have been told, you do not organize photos with iTunes, and the photos are really not handled by iTunes, it is just a helper. You would organize the photos on the computer like you would any files. Just remember, when you select folders in iTunes to sync, iTunes will only sync down one level, in other words, don't create folders within folders. After creating folders with names you want, put the photos in the folders and then sync to the phone. In the Photos tab, just select the individual folders you want. You do not have to sync all folders and all of the thousands that you have on the computer, only the selected ones you want. Just remember that saving photos in the camera roll, or now the recently added, is just inviting problems. That area is very much like volatile memory on the computer. If something happens to the phone and you have to reset, if you do not have those photos imported to the computer or are just relying on the iPhone backup, you could find yourself without photos at all. Import them and then sync back. That way the backup of the photos is the computer folder.

  • How to change dispaly format of Due Date in BPA Invoice Template (11.5.10)

    Hi,
    I've modified the Invoice Template through template management in Bill Presentment Architecture (BPA). I copied the default layout and made the format changes, added our company logo etc. The only thing that I'm unable to do is change the format of the date Content Items like Billing Date and Due Date (TERM_DUE_DATE). Does anybody know how I can do that.
    Thanks for your help
    -Asif

    Jassing,
    Thank you for the hint about preferences. I didn't think about that.
    The date formats are suppose to follow the format setup in personal preferences. But it turns out that there is a bug that just the 'Due Date' in BPA Invoice template is not following that. The other dates are displaying according to the format in preferences. So we'll be applying a patch to fix it. Hopefully that will fix it
    Asif

  • How to read a property file..urgent

    Hi ,
    This is kinda urgent if you can help! I am a new bee to servlet and java.
    My JSP calls a java class file. In the class file i establish my connection to database.
    My requirement is to read a property file for the database name, username and password and connet to the database using JDBC(database is oracle).
    which class to use. I know something about properties class. Is there any other class which can read my property file.
    Or is there any other all together a better way to do it.
    thanks in advance
    Amit

    Inside your WAR file somewhere under the WEB-INF directory. This space is protected, whereas the ROOT (of course) is not. Unless you would like someone else to read your properties file...
    Once you decide where you want it, post the section of code where you load the properties file, we can probably help you figure out where you path is wrong.

  • How to define reminder letter before due date

    Dear Expert,
    How to define dunning procedure in FBMP (for tcode F150) for this condition:
    1st reminder letter should be generated 7 days before due date.
    Currently the setting for dunning level is 4 (days in arrears: blank, 14, 60, 180)
    But I confuse how to be set in 'Days in Arrears' for the first reminder letter?(I set blank since could not set as negative, e.g -7 (7 days before due dates)
    Kindly advice
    Thank you.

    Hi
    maintain Denning Level like Below
    Days in arrears            0    7  53   173
    Calculate interest
    Print Parameters
    Always dun?
    Print all items
    Payment deadline      7     7     7   7
    hope it will resolve your issue
    satish

  • How to send (Dunning) reminder before due dates.

    Hi ,
    As per the customer requirement, i have to send a dunning reminder before due (10,5,2) days. Let me know if there is any standards available or any alternate solution.
    Regards
    KC
    Edited by: SAPFINANCE on Jul 7, 2010 3:23 AM

    yes if the any single due items are there to that particular dunning date, it is possible to print the not due items(open items) from the following setting.
    Check in the dunning settings in FBMP. if you have to  tick  "print all Items" check box in Dunning levels tab. If this is ticked then it will cover all items.
    without having any due item standard SAP will not allow to print dunning letter.
    for example customer account having 5 line items, out of which one line item today is due date, remaining 4 line items not due as on today and it will be due on after 12.08.2010. If you run the dunning letter with today date system will show today due item and also shows the other 4 line items with due dates and days arrears. printout also shows the total of due items and account balances. due item  same as one item, account balances same as total 5 line item total.
    due date showing future date for 4 line items, days errors showing days in Minus sign.

  • How to read value within XML Tag data using IO Stream in Java

    We have xml data into a Stream and we need to extract values again into a Stream from the particular XML tag <Data> inside the Stream. PFB the sample XML which will be contained inside the stream and can someone help us to hint the java code for this. We require it using the IO API only and we need to look <DATA> for the begining of the stream and </DATA> as the end of the stream.
    Please note that input is stream and output require also is a stream.
    <?xml version = "1.0" encoding="UTF-8" ?>
    <GenericDataEnvelope>
    <DataFormat>PlainText</DataFormat>
    <Name>1111</Name>
    <Security>NA</Security>
    <senderName>abc</senderName>
    <Protocol>HTTP</Protocol>
    <Data>
    SElQRlhDVElQRlBCTktERUZGMDYxMDAyMDc0MzUyMDAwMTA2MTAwMjA3NDM1MlRDSEFTVVMzMzAw
    MDAwMDAwMDAwMTc4LDEyMDAwMTc4MTIKezQ6TVQxMDM6CjoyMDowMDYwMDQ5MjQxMDA2NzcwCjoy
    M0I6Q1JFRAo6MjNFOlNEVkEKOjMyQTowNjEwMDVDQUQwLDAxCjozM0I6RVVSMCwwMQo6MzY6MSwz
    TNzcwQU5WLVJFTlRFIE9DVCAwNgowLDAxLzEsMTcxOQo6NzFBOlNIQQo6NzI6L1JFQy84NDM2MTU3
    MTA2Ci19ClRJUEYK
    </Data>
    <DataType>INVOICE</DataType>
    </GenericDataEnvelope>

    The example you've showed is valid and it is also text.
    Think seriously about this ... for example, do you have a rule that says </DATA> can't appear in the binary data?
    But in any case I can't see the problem. If you want to use IO classes directly, just read lines until you see <DATA>, then read data until it ends with </DATA>, and remove that.
    But I would certainly use SAX myself until proven otherwise that it won't work..

  • How to read a alv grid row data from standard program

    Hi All,
    I am working on transaction LBK1. Actually when you will open this transaction in the left hand side it will show you the data in tree. When you click on a notification node it will show the relevant data in right side. In which there is a operation tab . In this tab the data comes in alv grid. If user selects a row then I have to get that selected row value. There is also a toolbar above on the tree side. There are some buttons which execute our implementation class where I can put the code.  
    Can anyone please help me out? How I can read that selected row in our class/method?
    Thanks in advance.
    Best Regards
    Ritu

    Setting and getting selected rows (Columns) and read line contents
    You can read which rows of the grid that has been selected, and dynamic select rows of the grid using methods get_selected_rows and set_selected_rows. There are similiar methods for columns.
    Note that the grid table always has the rows in the same sequence as displayed in the grid, thus you can use the index of the selected row(s) to read the information in the rows fronm the table. In the examples below the grid table is named gi_sflight.
    Data declaratrion:
    DATA:
    Internal table for indexes of selected rows
    gi_index_rows TYPE lvc_t_row,
    Information about 1 row
    g_selected_row LIKE lvc_s_row.
    Example 1: Reading index of selected row(s) and using it to read the grid table
      CALL METHOD go_grid->get_selected_rows
        IMPORTING
          et_index_rows = gi_index_rows.
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines = 0.
        CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
             EXPORTING
                  textline1 = 'You must choose a valid line'.
        EXIT.
      ENDIF.
      LOOP AT gi_index_rows INTO g_selected_row.
         READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
        ENDIF.
      ENDLOOP.
    Example 2: Set selected row(s).
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines > 0.
        CALL METHOD go_grid->set_selected_rows
            exporting
              it_index_rows = gi_index_rows.
      ENDIF.

  • Java XML-Reader (SAX)--How to read and display xml-element-data???

    hello all,
    i would like to display just some xml-data
    Which methods in java should i use to select just one character-data of this (for example: "deu" from the element <Language> or the attribut "version" of the element <catalog>).
    Here is the XML-document i want to parse and display it with System.out.print() :
    <BMECAT version="1.2">
         <HEADER>
              <GENERATOR_INFO>
                   e-proCat 2.1, e-pro solutions GmbH
              </GENERATOR_INFO>
              <CATALOG>
                   <LANGUAGE>deu</LANGUAGE>
                   <CATALOG_ID>Katalog 01</CATALOG_ID>
                   <CATALOG_VERSION>001.000</CATALOG_VERSION>
                   <CATALOG_NAME>ETIM</CATALOG_NAME>
                   <DATETIME type="generation_date">
                        <DATE>2002-05-22</DATE>
                   </DATETIME>
                   <TERRITORY>DE</TERRITORY>
                   <CURRENCY>EUR</CURRENCY>
                   <MIME_ROOT>ETIM-Daten</MIME_ROOT>
              </CATALOG>
    </HEADER>
    </BMECAT>
    Here is the java application i wrote and which doesn t work:
    import org.apache.xerces.parsers.SAXParser;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.XMLReader;
         public class XmlLeser implements ContentHandler {
    public XmlLeser(String fileName) {
    try {
    XMLReader myParser = new SAXParser(); // SAXParser (Xerces)
    myParser.setContentHandler(this);           
    myParser.parse(fileName);      } catch (Exception e) {
         System.out.println("Erreur " + e);     }
    }// End of constructor
    public void startDocument() {
         System.out.println(" start to parse " );
    } // startDocument()
    public void endDocument() {
    System.out.println(" End of Parse ");
    } // endDocument()
    public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
         System.out.println(localName) ;
    public void endElement(String namespaceURI, String localName, String qName) throws SAXException {           
    }// Endelement()
    public void characters(char ch[], int start, int length) {
    } // endCharacters(char[],int,int);
    public void processingInstruction(String target, String data) {
    } // processingInstruction(String,String)
    public void ignorableWhitespace(char ch[], int start, int length) {
              characters(ch, start, length);
    } // ignorableWhitespace(char[],int,int);
    public static void main(String args[]) {
    String xmlFileName = "";
    if (args.length == 0) {               
    System.out.println("Usage::java XmlLeser path/xmlFilename");
    System.exit(0);      } else {
    xmlFileName = args[0];
    XmlLeser pux = new XmlLeser(xmlFileName);
    }// end main()
    }//endClass

    You need to pass your filename String as a parameter to your functionality. It depends how you're currently set up though. We can't really see the top of your call so it's difficult to determine what you are calling and we don't really know from where you're calling either.
    If you're running standalone, then on launch of the application, you can feed in a file name as an argument that you can read in in String args[] in the main function and pass down to your XML splitter.
    If you're a method in a class that's part of a bigger pile, you can feed the file name as a String to the method from wherever you call from if it makes sense architecturally.
    You might also want to pass down a File object if that makes sense in your current code (i.e. if you're using your file for other purposes prior to the split, to avoid recreating closing/opening for no reason).
    Depends what you're trying to do. If I put together a piece like this, I would probably create an <yourcurrentrootpackage>.xml.splitter package.
    Also, on a side note, you're problem isn't really reading and writing XML in java, but seems more to be making your functionality generic so that any XML file can be split with your code.
    Regards
    JFM

  • How will read the property file on dynamically?

    hi,
    I developed 2 java files...in both the files i am reading the some content from .property file(Notes.properties)....
    I created the jar file call Aix.jar using the following command.
    jar -cvf Aix.jar *.class(without specifying the notes.properties file)...
    then i executed the java file using the folowing command
    java -cp Notes.jar;Aix.jar NotesToolTest
    now i am getting following exception:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.util.MissingResourceException: Can't find bundle for base name Notes, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at NotesToolTest.<clinit>(NotesToolTest.java:28)
    I got the problem why this happening...because notes.properties is not included in jar file...that's why the above exception is coming.
    But my problem is can i run the java file that will take .prooperties file dynamically(if .property is available on the current directory)...
    Thanks in advance,,,,
    Regards,
    Sankar

    because notes.properties is not included in jar file..Wrong. It is simply not available in the classpath.
    The solution is either putting the properties file in the classpath of JVM used, or adding the system path to the propertiesfile to the classpath of the JAR.

  • How to read a property in XSL?

    Hi
    I am trying to access a property in xsl and then invoke a service if the property value is set to true.
    Here is what I have done until now:
    1. Create a Normalized message nm
    2. Set the property: nm.setProperty("ABC", "TRUE")3. nm.setConten(message)4. request.setInMessage(nm)5. send(request)Now I want to access the property in xsl to test a condition, how do I do this? Please help me;....

    i dont remember from the top of my head + i'm falling asleep. but.. try this
    IPortalComponentContext ctx = componentRequest.getComponentContext();
    IPortalComponentProfile profile = ctx.getProfile();
    String value = profile.getProperty("propertyID");
    componentRequest is avaiable in JSP just like the response object. You need not to instantiate it.
    getProperty("propertyID") is used to retrieve whatever propertyid you have in your portalapp.xml for that particular component you are executing.
    goodluck

Maybe you are looking for

  • C7 General : System Error while deleting the photo...

    It show me system error when i attempted to delete the photos. Even i had my photos deleted on mass storage mode and ovi suite, it's seem that the deleted photos is still in the memory when i open the photo app. Some one please help me on that i'm ru

  • Safari 6.0.5 Crashing many times a day

    Here's my crash log.. please can someone help as it's driving me loopy!! Process:         Safari [14242] Path:            /Applications/Safari.app/Contents/MacOS/Safari Identifier:      com.apple.Safari Version:         6.0.5 (8536.30.1) Build Info: 

  • Touchpad Wifi Connection Through Mobile Phone

    Hello Everyone, Can anyone help me find a way to use my mobile phone(s) as a wifi/bluetooth mobile connection to the internet. I have a work Blackberry 9630 with 3G Data on Verizon and a Palm Centro with Sprint everything data. Is there some way to u

  • Skinning adf menuButtons component

    I'd like to know how to make menu buttons' icons and text centered and icon to be above the text... I couldn't manage to do it myself..

  • TOC Problem: Leader Lines disappeared after I've changed the font

    Hi, I am having a strange problem with Pages (I use the version in iWork 08). I am currently writing on my dissertation. I have used Helvetica while typing because it reads better on the screen. However, after changing the font to Georgia (for the fi