Use AppleScript or Automator (or both) to get Mail and add to a text file?

Hello all,
I'm sorry if this is a duplicate of a well-known topic, I tried searching and couldn't see anything.
I'm behind a proxy at work that blocks any kind of webmail access, but I'd like to be able to check my email while on a break or something.
I had the idea that I could use Automator or Applescript to check my mail, get the new messages and add the text to a textfile that I could host on my personal webserver that I use for family stuff.
I've tried an automator workflow that seems to work while in Automator, but when I save it as an application, it won't even start Mail to check.
I also thought of just leaving mail running, and have a rule that starts a script when new mail arrives, but I don't know enough about Applescript to do it.
I don't want to confuse anyone with the details of my convoluted ideas, so I'll leave it at that.
Is there a way to do this? I want mail to check the server, download the messages, new messages get their text appended to a text file that's stored in my webserver's directory (same computer) that I can access from the web, and have it repeat every 5 minutes or so.
If I've left out a detail, let me know, and if I'm just stupid and there's an easy way to do this... be kind.
Thanks!
aeix
iMac G5 2.0 GHz   Mac OS X (10.4.6)  

It certainly is going in the right direction. I'm not all that versed in AppleScript, but it looks like that particular script is creating a new text file for every message processed.
I would like to either create a specific text file if it doesn't exist, or append the text to the end of the file if it does exist.
But like I said, definitely heading in the right direction!
iMac G5 2.0 GHz Mac OS X (10.4.6)

Similar Messages

  • I have 2 questions regarding the iphone 5. 1 How do i get my yahoo mail set up. I tried the setting it up as both a yahoo mail and other mail. 2. I seem to have lost my notes on my iphone 5 but I have them on my ipad. How can I use cloud to sync my notes?

    I have 2 questions regarding the iphone 5. 1 How do i get my yahoo mail set up. I tried the setting it up as both a yahoo mail and other mail. 2. I seem to have lost my notes on my iphone 5 but I have them on my ipad. How can I use cloud to sync my notes?

    I will address your second question.
    First, make sure your iPhone and iPad have absolutely identical Apple IDs.  If they do, use that Apple ID in Settings > iCloud on your iPhone to select the "Notes" option.  Lo and behold, all your iCloud notes should appear on your iPhone.

  • I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    Hi,
    According to your descriptioin, I don't think this is system problem, it should be Intel driver problem. It would be contact Intel to confirm this issue whether this is their driver problem.
    Roger Lu
    TechNet Community Support

  • How to Use the same iview for both KM End User and the KM Administrator

    Hi friends,
    *This is my scenario :* How to Use the same iview for both KM End User and the KM Administrator but with different Context
    Menu Options.
    i followed these steps but im getting same context menu for both KM End User and the KM Administrator .
    Assign the role Content Administrator to the user km_admin. This is needed so that km_admin can change
    the presentation settings for the KM Folder u201EReports_kmFolder‟.
    Now, login with user km_admin. Navigate to the Km Folder reports_kmFolder through Content Administration
    -> Km Content. Click on Details link of the folder reports_kmFolder.
    Go To Settings -> Presentation. Click on the tab u201ESettings for You‟-> Click on button u201ESelect Profile‟.
    Select the radio button corresponding to u201Elayout Set‟, and choose u201EConsumerExplorer‟ from the dropdown.
    Click u201EOK‟.
    Select both the check boxes corresponding to Items Affected as shown above, and click u201ESave‟
    Now, remove the u201ESuper Administrator‟ role from the user km_admin and login with this user.
    How rto resolve this????
    Regards,
    Prasad.

    Hello Prasad,
    Most likely the user km_admin still has system principal roles assigned, even though you removed the Super Admin role, you should check that this user doesn't have any other admin roles, otherwise it will be considered a System Principal user and will therefore still have access to all content. For more information see http://help.sap.com/saphelp_nw70/helpdata/en/19/56f28fbd4e11d5993b00508b6b8b11/frameset.htm
    Try creating a new user with just read access to the content and you should see that it will not be able to make any changes etc.
    Regards,
    Lorcan.

  • I have an old iPhone and my new phone that I'm using currently. The old one isn't being used. Can I make both of the phones receive all of my text messages?

    I have an old iPhone and my new phone that I'm using currently. The old one isn't being used. Can I make both of the phones receive all of my text messages even though my old one doesn't have service but there is wifi?

    You can activate iMessage on the old one so it can get your iMessages. The old phone will NOT recieve SMS/MMS messages sent to your number.

  • I want to use an external microphone for both my iPhone 5S and my MacBook Pro. This is for music and for making recordings outside such as birds. Any suggestions?

    I want to use an external microphone for both my iPhone 5S and my MacBook Pro. This is for music and for making recordings outside such as birds. Any suggestions?

    use a splitter something like this
    http://www.amazon.co.uk/3-5mm-Headphone-Splitter-Cable-iPhone-White/dp/B003W37DS E/ref=pd_sxp_grid_pt_2_1

  • Someone is using faebook to run java script to get data and email from me in windows 8

    someone is using faebook to run java script  to get  data  and  email  from  me in  windows  8

    Is this a developer question?
    Jeff Sanders (MSFT)
    @jsandersrocks - Windows Store Developer Solutions
    @WSDevSol
    Getting Started With Windows Azure Mobile Services development?
    Click here
    Getting Started With Windows Phone or Store app development?
    Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

  • When I download a movie from iTunes the cover art disappears. I try get info and add the art, it doesn't show up. So it's just gray. It opens and plays fine. Apple can't figure it out. It's an nas drive. When I use a firewire drive I get the art

    When I download movies from iTunes to my NAS drive, I don't get the cover art. It shows up while its downloading, but when it's finish it disappears. If it has an iTunes extra the cover art is there. I tried get info and add the cover art, it never shows. Regardless of how I add it. Funny thing is, if I download the same movie to my external firewire drive, no problem its there. I've called Apple with no success. I've even tried copying the movie with the art from the firewire drive to replace the file on then NAS drive I still loose the movie cover art. I also tried several times to re download it, no luck. Any ideas? I'm out of ideas.

    Do you have any videos/movies in the video app?
    In iTunes if you right click on the video and select Get Info and go to the Option tap what Media Type is shown?

  • Hi I have a Iphone4 in using. I couldn't find Safary, E-mail and notes from my phone one day. I made this mistake when I want to delete some programe from my phone. Who can help I recovery my phone please.

    Hi
    I have a Iphone4 in using. I couldn't find Safary, E-mail and notes from my phone one day. I made this mistake when I want to delete some programe from my phone. Who can help I recovery my phone please.
    Thanks

    Hello, HenryWang2103.
    Thank you for visiting Apple Support Communities.
    The Safari, Email and Notes applications are native to the iOS and is unable to be deleted.  Since this is the case, they are either in a folder on the iPhone, on another page or Restrictions are enabled.  You can also search for these Apps on the iPhone by touching the screen and sliding your finger down.  Here is some information regarding these features.  The information about folders is located in the user guide below.
    iPhone User Guide
    iOS: Understanding Restrictions (Parental Controls)
    http://support.apple.com/kb/HT4213
    Cheers,
    Jason H.

  • ICloud asked me to reenter my password to get mail and when I did, it rejected my password. I'm trying to reenter in my account information, but it won't let me because the incoming mail server field is blank, but it won't allow me to enter anything.

    iCloud asked me to reenter my password to get mail and when I did, it rejected my password. I'm trying to reenter in mail account information, but it won't let me because the incoming mail server field is blank, but I can't enter anything into that field.

    No, didn't have to sign out. As I started to, got a messge saying something about losing all my calendar information, which unnerved me so I didn't sign out. It was correcting the password in another email account that corrected the situation for me.

  • HT1430 My email has quit working! message comes up saying "Cannot Get Mail' and The connection to the server has failed!

    My email has quit working! I receive message saying, "Cannot Get Mail" and it also says, The Connection to the Server Failed!
    Can anyone help?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Setting Up An eMail Account
    http://support.apple.com/kb/ht4810
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Icloud seems down on my iPad can't get mail and can't remember password

    My  icloud is not working can't get mail and couldn't remember password so I chang

    Hi Shutt,
    I apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having issues accessing your iCloud account or changing your Apple ID/iCloud password, you may find the troubleshooting steps outlined in the following articles helpful:
    iCloud: Account troubleshooting
    iCloud: Change your iCloud password
    Regards,
    - Brenden

  • Using Applescript (or Automator) to delete Albums

    When you import folders into Aperture, it creates for every folder an Album "Images from:" whatever the folder name is. Is there a way using Applescript that I can easily delete those albums? They are essentially useless as they stand to me. I am importing a large number of folders, so I am getting those albums all over my Aperture library.

    The short answer is yes you can use apple script to do that - there is virtual no documentation you will have to take a look at all the methods that aperture exports to figure out what you have to do. If you are new to applescript/automator you may want to think twice about taking that on.
    Just a note regarding import - There are three ways to import into aperture:
    1) the normal way - import images - this takes all the images in a folder and imports them into an existing or new project.
    2) if you happen to be clicked on an existing project you can use import folders as albums (what I think you are doing).
    3) if you happen to be clicked on the library level or a blue folder that same option number 2 changes into import folders as projects.
    Using the combination of the three may ease the import a little with out resorting to applescript/automator unless you are familiar with using those tools that may be rough going.
    RB

  • Using Applescript or Automator with Awaken

    so, i am trying to write a script and/or automator workflow to set up alarms in a program called awaken.
    i want it to work like this
    every sunday night, i want a script/workflow to run (triggered by an ical event most probably) that will search for events in the next week and somehow input those times as alarms into Awaken.
    this is what i've figured out so far.
    in automator, i have a workflow that will search for an ical event, output that info to an event summary, and then filter that text by the word "date" or "time" and then set that to a variable.
    so, basically, this gives me a variable with a date and/or a time. but how can i get this into awaken? i can use watch me do to open awaken, make a new event, and start to input the text, but how can i apply that variable to the text?
    any thoughts/suggestions?

    ok, this is almost working. i have one weird problem though.
    here's my script so far:
    tell application "iCal"
    tell calendar "Test"
    set myDate to (start date of first event whose start date is greater than (current date) and start date is less than ((current date) + 7 * 86400) and summary is "work")
    set myDate to myDate - 2 * hours
    set mon to month of myDate as integer
    set da to day of myDate as integer
    set yea to year of myDate as integer
    set hour to (hours of myDate) - 2 * hours
    set min to minutes of myDate
    end tell
    end tell
    tell application "Awaken"
    activate
    end tell
    tell application "System Events"
    tell process "Awaken"
    click button 4 of window "Awaken"
    delay 0.3
    click text field 1 of sheet 1 of window "Awaken"
    delay 0.3
    set eventtitle to "2012"
    keystroke eventtitle
    delay 1.0
    click pop up button 1 of group 2 of sheet 1 of window "Awaken"
    delay 0.3
    click menu item "Wakeup" of menu 1 of pop up button 1 of group 2 of sheet 1 of window "Awaken"
    delay 0.3
    click pop up button 2 of sheet 1 of window "Awaken"
    delay 0.3
    click menu item "Date" of menu 1 of pop up button 2 of sheet 1 of window "Awaken"
    delay 0.5
    set x to 1
    repeat until x = 7
    keystroke tab
    set x to x + 1
    end repeat
    keystroke mon
    delay 0.3
    keystroke tab
    delay 0.3
    keystroke da
    delay 0.3
    keystroke tab
    delay 0.3
    keystroke yea
    delay 0.3
    keystroke tab
    delay 0.3
    keystroke hour
    delay 0.3
    keystroke tab
    delay 0.3
    keystroke min
    end tell
    end tell
    and it works so far without any errors, however, when it tabs into the date/time fields of the awaken window to type the variables, they don't get typed. if i don't use a variable and do "keystroke "2010" or something to that effect, it works, but that won't work for me since i want this to read the value from the ical event. it will type a variable value into the title field, but not into the date or time fields, and i can't figure out why.

  • I got locked out and changed the password. it did not work and now its disabled for 60 minutes. I dont use itunes, or icloud. how can I get in and why wont it work.

    I am locked out of my iphone. I changed the password and it still wont work. I changed it again and it is now disabled. I do not use itunes, icloud. How can I get into my iphone? I have changed my password and its not working. how can I start over?

    Follow the instructions in this support document. http://support.apple.com/kb/ht1212
    Without a backup, the use of iTunes or the use of iCloud, your only choice is to restore the device as new to remove the passcode.

Maybe you are looking for

  • How to enter text in text input box using virtual keyboard in flex application

    Re: how to enter text in text input box using virtual keyboard in flex application hi, im using flash builder 4, i  designed virtual keyboard, i have to update the text in text input box  continously by using virtual keyboard. i used button events.i

  • Earliest retro calculation problem???

    Hi experts, In PT60, I am getting error 'Period to be evaluated 20090101 before earliest recalculation period 201001, I checked infotype 0003, Here Earl.Ret is set to 01.01.2009. I also checked control record,, it is set to 01.01.2005. I am not under

  • How do I keep track of dialog boxes?

    If I have a three question test, How do I keep track of the answers?

  • Best way to move data and programs to another profile on same Mac?

    Hello, What is the best way to move data and programs to another profile on the same Mac? I have a user who's profile is corrupt, I know that most programs will work on both the new and old profile however when trying to copy the Desktop folder, or D

  • AIR Mobile detecting device memory

    Is it possible to detect the total amount of device memory without a native extension on Adobe AIR Mobile? Hoping to detect low memory devices and turn certain features on/off. I am aware of System.totalMemory and System.freeMemory but that only give