Automatically inserting Julian Date (yyD) in subject line in Mail

Problem: I would like to automatically insert at the beginning of the Subject line in a new Mail message, a Julian Date, eg. 06277. The suffix to this date (yyD) is /n (where n is the sequential number commencing at 0001hrs for the given day (D).
Question: How do I achieve this? AppleScript or Automator? Further, what is either the script or the automator commands?

Hi Jeffrey
I've emailed the full script to you, so make sure it doesn't end up inyour Junk Mail.
Just so that others, can see, the script is;
set jDay to do shell script "date +%j"
set jYear to do shell script "date +%y"
set theSubject to jYear & jDay
tell application "Mail"
set theNewMessage to make new outgoing message with properties {subject:theSubject}
tell theNewMessage
-- Default is false. Determines whether the compose window will
-- show on the screen or whether it will happen in the background.
set visible to true
end tell
end tell
(Now you can give me a star)
G5 DP 1.8Mhz   Mac OS X (10.4.7)   1Gb RAM, 2x 149Gb HDs, LinkSys router, EyeTV 410

Similar Messages

  • Automatically generated Date/Time in subject line

    Hi there,
    I’m just wondering is it possible to have the date and or time automatically added to the subject line if I create a new e-mail message or if I receive or reply to an e-mail from someone?
    Any help appreciated!
    Regards,
    Bonemister

    Hi,
    We can design a custom form to achieve this goal. Since I don't know the version of Outlook you are using, just take Outlook 2013 for example. Please follow the steps below:
    1. Enable Developer tab if you haven’t done this. Go to File > Option > Customize Ribbon, tick the check box before
    Developer from the right side of the Outlook Options dialog. Click OK.
    2. Click on Developer tab in the ribbon. Tap Design a Form.
    3. Choose Message in the Standard Forms Library and click
    Open.
    4. In the form window, right click on the text box next to the Subject and select
    Properties from the pop-up menu.
    5. In the Properties dialog, click on Value tab.
    6. Tick the option ‘Set the initial value of this field to:’ and enter
    Date() in the box. (If you want to show the time, just type
    Time())
    7. Click OK. We can click Run This Form button to preview the form.
    8. After that, click Publish > Publish Form As
    to publish your form and save it to your Personal Forms Library.
    How to customize and publish a form, please refer:
    http://msdn.microsoft.com/en-us/library/office/ff868929.aspx
    Since this forum is for general questions and feedback related to Outlook, if you have any further develop problems, please post in Outlook for developers forum:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=outlookdev
    Thank you for your understanding.
    Best Regards,
    Steve Fan
    TechNet Community Support

  • How to automatically add file name to email subject line

    I just upgraded from Adobe Acrobat Pro 9 to Adobe Acrobat XI Pro.
    Previously, when I sent a form via email in outlook, the subject line of the email automatically filled the file name. With this new version, this no longer happens.
    Is there a setting that allows me to automatically fill the subject line of the pdf with the file name (or some way for me to set the subject line automaticallly)?  Most of my emailed pdf forms go to the same person with the same subject line.
    Thank you for your consideration!

    Unfortunately Adobe lacks the ability to control and access the email attachment file names.
    You can set a standard submit button url action to a mailto command string with a mailto:you[at]yourdomain.com&subject=Your+Custom+Subject+Here
    But you won't be able to know what the file name is to insert it into the subject.
    To have full control over the output, I suggest you submit the data or whole PDF to a server-side script, such as PHP or ASP.net.
    A script can can inject a field values into the custom SMTP email body, subject, recipient lists and attachment file name by parsing the submission or passing values via a Querystring.
    Visit pdfemail.net for online examples and more information on server-side scripting.

  • How to insert field from form into subject line of email

    I have a form:
    http://www.mcw.edu/FileLibrary/Groups/HMGC/Forms/HIPAAForms/HumanSequencingTertiaryAnalysi .pdf
    and I would like to have the name of the person fill in automatically in the subject line.  Right now when the email button is clicked the subject line reads: "Submitted Human Sequencing Tertiary Analysis Submission Form."  Once the form is filled out, I would like the subject line to read: "[PI-Name] - Submitted Human Sequencing Tertiary Analysis Submission Form,"  (as highlighted below)
    event.target.submitForm({cURL:"mailto:?subject=[PI-Name] - Submitted Human Sequencing Tertiary Analysis Submission Form&body=Please find attached the completed Human Sequencing Tertiary Analysis Submission Form.",cSubmitAs:"PDF",cCharset:"utf-8"});
    I read the other discussion on this, but it didn't seem to pertain to me, or I just couldn't figure it out.  Anyone have any ideas?
    Thanks, Anne

    Hi Anne,
    This has come up several times on the forum. Most recently here, with links to examples and descriptions as to how it works: http://forums.adobe.com/message/4183125#4183125.
    Hope that helps,
    Niall

  • Adobe forms - using form field data to populate subject line and body of email

    HI
    I have created a form that can be submitted by e-mail. I would like the data entered into the form to populate the subject line and body of the email but have no idea of how to script this. I would be grateful if someone could have a look at the form and see how I can achieve this.
    For example
    subject line: Travel and accommodation form [Name] [EventName] [StartDate]
    Body:
    Please open the attached travel and accommodation for for [Name] who will be attending [EventName] on the [Start Date]
    Here is the code for my button:
    <field name="Submit" y="219.075mm" x="139.7mm" w="34.925mm" h="6mm">
                <ui>
                   <button/>
                </ui>
                <font typeface="Myriad Pro"/>
                <caption>
                   <value>
                      <text>Submit</text>
                   </value>
                   <para vAlign="middle" hAlign="center"/>
                   <font typeface="Myriad Pro"/>
                </caption>
                <border hand="right">
                   <?templateDesigner StyleID apbx2?>
                   <edge stroke="raised"/>
                   <fill>
                      <color value="212,208,200"/>
                   </fill>
                </border>
                <bind match="none"/>
                <event activity="click">
                   <submit format="pdf" textEncoding="UTF-16" target=mailto:[email protected] xdpContent="pdf datasets xfdf"/>
                </event>
             </field>
    Please excuse my ignorance as not competent with XML so any help would be gratefully received. Have already tried some methods posted on here already but not helped.

    You should post this to the LiveCycle Designer forum here if you haven't already.

  • Disable automatic insertion of date in Word 2007

    Hi
    We use Office 2007 Danish and I need to find the setting that disables the automatic correction/insertion of dates in Word 2007. If I want to write
    24. february 2011 it automatically corrects it to 24. february 2011-03-17. I have looked everywhere, but can't find the setting that I have to disable?
    Can anyone help?
    /Lasse

    THIS WORKED !  Thanks Stefan.  Sadly I have no understanding of how and why it worked and I wish MS would make something like this much easier to turn on and, more importantly, turn it OFF.
    Thank you very much, I miss the old ? Help at the top of the toolbar.
    I'm glad you found my reply useful. :-)
    Note that newer versions of Word make it easier to turn off AutoComplete suggestions. In Word 2010 and 2013, you'll find the option at File tab | Options | Advanced.
    Stefan Blom, Microsoft Word MVP

  • How can I automatically insert a date in Pages for my Ipad

    Is there any way to automatically insert the current date in a letter using Pages for the IPad?  If so how?

    It is no possible.
    An alternative is to create a Page file with password in Pages for Mac, and save it to iCloud, then open it on the iPad using the password in iCloud.

  • Alter subject line in mail sent to candidate.

    Hi all,
      i have a requirement in sap e-recruitment to customise the  smartform  for acknowledging candidate application.
    i am using HRRCF_CS_IT_APPL_INVITATION as the reference  for my custom form.
    This smartform is sent to the candidate via email. The subject line is automatically picked up from the Smartform ->formattribute-> meaning field.   teh problem is that this  field is restricted to 30 characters only.
    Is there an enhancement or a note available through which i can alter the subject line(have a longer subject line)  of the mail?
    my system details are : sap ECC 6.0   E-recruit release 604   level 004  highest support SAPK-60404INERECRUIT
    Thanks.

    Hi,
    many customers want to change the standard subject creation. The implemented logic to get the email subject from the smartform is just not practical as it is not only too short but also smartforms are described in a way the recruiters and devlopers like for easy handling e.g. "rejection - candidate blacklisted" and you probably do not want this to be the mailheader the candidate reads :o).
    The easiest way to change the subject is enhancing the method set_subject of class CL_HRRCF_CS_DOC_CAT_SF_SUPER. I usually place an implicit enhancement at the methods end and add the coding I need, so it overwrites the standard processings. In simple cases customers use a fixed but language dependent subject like "Your application at company xyz". But you can also put more complex stuff there by using the activity member attribute to get activity types or navigate to read requisition data.
    Kind regards
    Roman

  • SPAM shows in subject line of mail

    On mail I recieve from one person it always reads ****SPAM**** in the subject line.  It does not show up as junk mail.  The person is a contact in my address book, so does anyone know how I can get the system to recognise that it's not SPAM?
    Thanks for any assistance

    It may actually be your mail server that is adding *JUNK* to your subject line and not Mail. For example, my school's server adds *SPAM* to mail it thinks is spam, and it gets delivered to my inbox like that. It's then up to me to decide what to do with it. If this is the case with you too, I'm not sure if there's anything simple you can do about it on your end. If the messages being marked with *JUNK* are actually junk, I suppose you could just add a rule that sends those messages to your junk folder; if they're not junk, it may be something you have to just deal with.
    Of course this may not be what you are experiencing at all

  • What does the "To" in a rounded rectangle mean on the subject line of Mail?

    Just wondering what the "To" in a rounded rectangle means on the subject line of iPad Mail. It's on nearly all my messages!! Really bugging me.
    Cheers!
    Tom Adams

    Cheers!! I turned that setting on thinking it displayed those fileds when typing a new message, rather than having to press details.
    Fab! Cheers all!
    Tom Adams

  • Spaces in subject line causing mail servlet to brake

    Hi,
    I am working with cocoon, tomcat and xml/xsl/xsp. I have the mail servlet which works fine with html form always. However in the xml page if I put spaces in subject line or the text body, I am getting IOExcpetion. I
    don't get any error if my subject and body text is one long word. Please help.
    Here is the code for my XSP page
    <?xml version="1.0"?>
    <?cocoon-process type="xsp"?>
    <?cocoon-process type="xslt"?>
    <?xml-stylesheet href="Station.xsl" type="text/xsl"?>
    <xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core"
    xmlns:util="http://www.apache.org/1999/XSP/Util">
    <xsp:structure>
    <xsp:include>java.lang.*</xsp:include>
    <xsp:include>java.util.*</xsp:include>
    <xsp:include>java.io.*</xsp:include>
    </xsp:structure>
    <page>
    <xsp:logic>
    String From,sub,body;
    From = request.getParameter("From");
    sub = request.getParameter( "Subject");
    body = request.getParameter("Body");
    String x= "http://localhost:8080/kong/servlet/GSMailServlet?command=send&to=aj&from="+ From+"&subject=" sub "&text=" +body;
    </xsp:logic>
    <util:include-uri>
    <util:href>
    <xsp:expr>x</xsp:expr>
    </util:href>
    </util:include-uri>
    </page>
    </xsp:page>

    Thanks for the suggestion. But When I tried using URLEncoder I got the output like this:
    {http%3A%2F%2Flocalhost%3A8080%2Fkong%2Fservlet%2FGSMailServlet%3Fcommand%3Dsend%26to%3Daj%26from%3Daj%26subject%3Drest+gfdfg%26text%3Dggfd+gfg: java.net.MalformedURLException: no protocol: http%3A%2F%2Flocalhost%3A8080%2Fkong%2Fservlet%2FGSMailServlet%3Fcommand%3Dsend%26to%3Daj%26from%3Daj%26subject%3Drest+gfdfg%26text%3Dggfd+gfg}
    Since Cocoon is doing the parsing I don't have the control over it. How do I solve this problem. Please help

  • How do I make numbers automatically insert date of table entry?

    Hi, I am monitoring time spent on a computer, so every time I log a time on my table in numbers I want it to automatically insert the date of that entry in the next column, I do not know how to do this,
    I hope someone can help me resolve this issue,
    Sincerely,
    Henri

    Hi Henri,
    There is no way to have an automatic time stamp in Numbers. Once you double click on a cell you can go to Menu>Insert>Date & Time and get a time samp that way.
    quinn

  • How automatically insert date when exit from Edit Item?

    Hi all
    Example: Sales - A/R -> A/R Invoice
    when you input any symbol in field "due date" and will press tab beside you is automatically inserted current date. in system exist standart function transformations in date or not?
    thank & hallo from moscow, russia

    Hi Artem Artamonov 
    I'm not sure exactly what you asking, but you can chenge the display format. Go to administration->system initialisation->general settings and look on the display
    tab.
    Hope this helps

  • How to format Data in subject line of an Email

    I have an email submit button on my LiveCycle form and the client wants data from the form in the subject line of the email. I have the button set up and the patterns set up on the fields but the data in the subject line doesn't display the way it does in the fields. this is what I have.
    var oDoc = event.target;
    var nSubject = Page1.Top.txtEmpID.rawValue + " " + Page1.Top.dteTo.rawValue;
    oDoc.mailDoc({
    cTo: "[email protected]",
    cSubject: nSubject,
    cMsg: Page1.Top.txtLastName.rawValue + " " + "Performance Agreement"
    The Employee ID is 7 digits including leading zeros (0123456) and the date is formatted MM-DD-YYYY. When it goes to the subject line it doesn't show the leading zeros (123456) and the date is formatted YYYY-MM-DD.
    Any help is appreciated, Thanks.

    To get the formatted date striong use formattedValue instead of the rawValue in your scriptings.

  • Remove a meeting on specific time date and subject line

    Hi
    I have a situation where a meeting organizer is no longer able to update or cancel a meeting she booked. Some how she also became the participant of the meeting and now has lost control of the actual meeting. Not able to edit or send update. I've exhausted
    my efforts in trying to find a solution for this. Doesn't look like there is anyway to get back ownership or transfer it to someone else.
    So my next plan is to remove the meeting from everyone's calendar via a script. So my question is, is there a way to remove a meeting from all participants calendar where the date/time and subject line is known. This is to ensure only that meeting is removed
    from the calendar.
    or if anyone has some other ideas please do share. I need to somehow send notification of cancellation and remove the meeting from outlook and the organizer has no control anymore.
    Thanks

    Hi,
    Per my understanding, you might want to display all the specific documents in a page, they can be filtered by values of a Date and time column.
    A possible solution I will provide is that, we can create custom visual web part to display all these documents. In the code behind, run a query with CAML to retrieved all the
    documents with the specific date and time, then generate a view of hyperlinks that points to these documents.
    In this way, we can combine the filter component with the data display component into one web part, with the help of CAML query and Object Model, it would not be a tough job to
    implement such a solution.
    More information about CAML and Object Model:
    https://msdn.microsoft.com/en-us/library/office/ee536691%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for