Mail and apple scripts

Anyone into scripting more than me..? I need some help !
I wish to set up an automated system where by if a 'hot' folder upon my desktop receives a newly created jpeg file, an email is then generated with an attatchment of the jpeg and sent out to a designated group of emails
Is this possible..?
Cheers
please email me or post here
Matt
www.matthewashton.com
Powerbook G4 and G5 and MacBook Pro   Mac OS X (10.4.6)  

Matt,
Have you tried to do this with Automator yet?

Similar Messages

  • Airport and Apple Script - on and off script

    I've had this problem for a while, trying to turn the airport card in a computer on and off using and apple script. i need it to automatically turn on or off depending on which account if logging into the computer.
    I did find that a solution can be found by writing an apple script to turn airport on and off. but my scripting skills aren't good and haven't worked thus far.
    So now i'm asking everyone: Can anyone write a script to turn the airport on or off? I bet you can't. (there's some motivation for you)
    I think it's my last resort, turning to other apple user and requesting help, because i have not been able to find another solution or a prewritten script (surprisingly)
    Thanks very much for your help!
    "i'll gladly pay you tuesday for a an apple script today."
    thanks

    I haven't used these tools so I don't know for sure, but doesn't Tiger's parental controls (in the Accounts preference pane) allow you to enable/disable network access by account? Would that work to solve your problem?
    EDIT: OK, by starting a new thread I guess you got the same response that I posted for your previous thread. For those interested, this is a continuation of the thread kevin macky, "Account with and without airport internet access", 08:07am Oct 11, 2005 CDT.
    If you are interested in trying to automate this, I suggest that you post your question in these areas:
    Mac OS X > Mac OS X Technologies > AppleScript
    Mac OS X > Mac OS X v10.4 Tiger > Automator

  • HT5621 I've changed my E.Mail and Apple ID but my account name is the old one - can'nt get rid of it . Please advise.

    I've changed my E.Mail and Apple ID but my account name is still the old one - can'nt get rid of it .
    Please advise.

    Does  Apple ID: Changing your Apple ID help?

  • How do I install and apple script in mail

    I am using  dreamhost as my ISP. I am  getting killed with spam and the have a  script. I found out how to add  the script via the rules function, but,  how do you store the script in  the location you need to retreive it  from. there I can't find info. Can  someone give me steps please? Do you  make a text file, etc?

    Select Mail Help from Mail's Help menu. Search for "install apple script."
    Use scripts as rule actions
    You can attach a script to a Mail rule. For example, you could have an incoming message trigger a script that copies information from the message and pastes it into a database that works with AppleScript.
    Open Mail
    Choose Mail > Preferences, then click Rules.
    Add a rule or select an existing rule to edit.
    Choose Run AppleScript from the “Perform the following actions” pop-up menu.
    Choose a script from the pop-up menu of scripts that are located in ~/Library/Application Scripts/com.apple.mail. Or choose “Open in Finder” to open the folder so you can copy a script into it.If you later move or rename the script, your rule will not work.
    Click OK to save the rule.
    If you used scripts in Mail rules in OS X Lion or earlier, then the first time you open Mail in OS X Mountain Lion or later, your scripts are moved to ~/Library/Application Scripts/com.apple.mail, and your rules are updated with the new location. To show your home Library folder, hold down the Option key, then in Finder choose Go > Library.
    If you use iCloud Documents & Data, your rules are available on your other Mac computers (with OS X 10.8 or later) that have iCloud Documents & Data turned on. Scripts attached to rules aren’t available.

  • KeyNotes and Apple script / scripting Bridge

    Hi
    Sorry I am a recently started development in Mac OS, so may be this question is very simple for you guys
    actually I am looking to manage Keynote application automatically from Mac Server application, I know apple script is available for lot of functionalities available in keynote but i want that all these things happend without showing anything on GUI , like i want to do all the automation on background without effecting the running GUI of keynote
    if anybody can have idea how to do it in Apple script or using ScriptingBridge, I will really appriciate your help and support

    depending on what you want to do, this may or may not be possible (most likely not).  Applescript works by scripting other applications: some applications are set up do do background tasks, some applications are duplicated by osax or unix utilities that operate invisibly, but most often applescript has to open a document in the application and work on it through the application. 
    scripting bridge is for cocoa developers: it allows cocoa apps to script other apps.  it's not really useful for you unless you want to develop specialized software.
    more details would be helpful.

  • Network location and apple script

    Hi,
    I have a strange problem... When I try to use this AppleScript to change network location in Leopard, nothing happens:
    tell application "System Events"
    tell network preferences
    get properties
    --> returns: {current location:location id "51BD3FB7-50D1-4859-9649-9138E7FF1ECA" of network preferences, class:network preferences object}
    get the name of every location
    --> returns: {"Automatic", "Sprint Card"}
    set current location to location "Automatic"
    end tell
    end tell
    This is copy-pasted from <http://www.apple.com/applescript/features/system-prefs.html>. I have 3 locations set: home, office and Automatic. I'm currently using home, and this script just silently fails to set the location to Automatic... Any thoughts/hints?

    That works, thanks!
    I'm still wondering why "pure" AppleScript solution proposed by Apple is not working?

  • Need help writing and Apple Script

    I've never written an apple script before so I need the entire tutorial for dummies. Basically, I am annoyed with the fact that Microsoft Word 08 keeps opening a new document at 100% zoom when I want it to open at "page width." How do I write a script for that?

    You don't need an Applescript. Open the New Document template, resize as you like then save the template.
    To learn Applescript start here. You will also find support at the Applescript site for developers. Your local book store or Amazon.com have dozens of books on Applescript programming.
    Here's the main site for obtaining Applescripts.

  • G-Mail and Apple Mail problems

    I have had tons of problems with my Mail app and Gmail. A window pops open and asks for my password and then does not have any effect on allowing retrieval from the server. Often times I cannot download my mail from gmail at all....have you had similar problems??
    OK....
    this gmail/mac mail problem caused me a ton of suffering.....but I think I have it figured out....
    I think the problem stems from the fact that if you use gmail through a browser and send messages, for example if you are away from your computer, then those sent messages eventually get stored as new conversations. When you return to using your mail app the messages you sent will appear in your inbox as new mail, sent by you.
    I am not quite sure how the next step happens but after a lot of fidgeting what I found was that, after erasing my inbox in gmail(this is probably not necessary), after backing up the messages, I went into gmail's preferences and in POP and Forwarding I selected allow POP for all mail. What happened next was unusual....even though the entire mail box on the gmail server was empty.....when Mail started to get the messages it showed that there were over 300 messages to download. The interesting thing was that most of these messages were sent by me to someone else and had an attachment.
    After downloading and erasing all these old messages that were causing this case of Mail constipation I went into Mail preferences>>>accounts>>>advanced and clicked the box "remove copy from server after retrieving message" option and then "right away"in the pull down menu. I also clicked the "remove now" button to clear all previously downloaded messages from the server. I noticed on the Mail app that this happened almost immediatly as Mail went about removing all these old messages from the server.
    Since this I have not had any problems. I believe that the problem lies somwhere in the way that Gmail creates "conversations". Somehow sent mail gets spirited away in some nook on the server and accumulates, eventually causing a case of constipation. These backed up messages somehow cause the Mail app to not be able to retrieve new messages. If you find this happening do as I have and see what effect it has. Allow your Mail app to down load all the messages it "sees" and keep an eye on what they are(this may take several hours). Often they will be old and previously sent/downloaded mail. Erase them and make sure that they are erased from the server using the advanced option in Mail preferences.
    Maybe someone with a more technical background can explain this phenomenon better.
    Good Luck.

    "A search for Mail AND Gmail in these forums (or a
    search for just Gmail restricted to this particular
    forum) could have saved you a lot of time and would
    have provided you a better understanding of what's
    going on (note, it should be "Gmail", not "G-Mail")"
    I wonder what the purpose of this reply of yours could be. If it is that something I've said has upset you, I don't know what it could be and I really wouldn't care if it wasn't because your statements could mislead other users into misunderstanding how Gmail actually works. There is nothing in the post that originated this thread that has not already been discussed recently in this forum, except for false assumptions that I'll have to clarify now.
    First, choosing a setting in Preferences... > Accounts > Advanced > Remove copy from server after retrieving message has no effect on a Gmail account, absolutely none, no matter whether you choose "Right away", or "After a month" or anything else. Yes, Mail will no longer see those messages, but neither would it had you chosen to leave the messages on the server instead. The messages are simply no longer available there for any POP mail client after having downloaded them. The messages are still on the server, however, and you can read them with a web browser. That's how Gmail works.
    Second, clicking Remove now in that same preference pane in Mail has no effect on a Gmail account either, absolutely none. The reason this doesn't work is the same as before. The messages on the server have been hidden by Gmail after downloading them and POP mail clients can no longer see them, nor delete them, nor do anything with them, until you go to the Gmail web site and configure your mail account to make all messages still there available for POP download again.
    Third, the only way to get a message deleted from the server with a Gmail account is to log into your account with a web browser. Now, if you want your messages to be deleted immediately after being downloaded by Mail, you can accomplish that by choosing the appropriate setting in the web account settings page -- and you are limited to the options provided there. Mail's own settings will continue to be completely and utterly ignored by Gmail.
    Now, had you searched these forums as I suggested or just followed the links I provided in my first reply would certainly have saved both you and me and probably anybody else that chose to read this thread a lot of time.
    iMac G5 17" (iSight)   Mac OS X (10.4.4)  

  • G(oogle)mail and Apple Mail: Cannot receive messages

    Hello,
    I have a googlemail account. My email address ends with "@gmail.com".
    I am trying to configure the Apple Mail application in Mac OS 10.2 (Jaguar). I can send but not receive messages.
    The German website says, i should set the server to "pop.googlemail.com", enter my password and use my email address "including '@googlemail.'" as username.
    Well, I think that is the reason why I cannot connect to the server, my Email address is gmail not googlemail.
    But whatever I enter in the respective fields (pop.googlemail.com, pop.gmail.com, pop3.....) all fails.
    Stupid as it is: event copying my settings from my smartphone does not help.
    What are the correct settings for me?

    Thank you,
    that really solved the problem.
    For all German customers, who participated in the public beta test of Google Mail ("invited users") and who have an email address, which ends with "@gmail.com",
    the correct servers are "pop.gmail.com" NOT "pop.googlemail.com"
    and "smtp.gmail.com" NOT "smtp.googlemail.com".
    Their German website is wrong in these cases. Moreother, the hint is missing, that SSL has to be activated for incoming mails as well.
    eMac 700 CD-RW   Mac OS X (10.2.x)  

  • HT5787 when first time i purchase Iphone, i don't know about Authentication mail and apple ID, every thing was done by sales person, now when i update by Iphone

    Dear All, when i first time purchased Iphone i dont know about the Apple ID and security system, every thing was done by sales person, now after using for 17 months when i updated my Ipnone it asked for authentication mail ID and password, nothing worked out and my phone is blocked, i request the Authorities to help me on this issue, Pnone serial no. is like this
    A1431 CMIIT ID:2011C16093.
    thanks

    Dear Rojmer,
    thanks for understanding by problem, since I have purchased Ipnone in an Apple store at Shanghai china, and I am residing in KSA & cannot contact them, now that is the way-out for such problem, I don't agree or believe that Apple as a great company will let their product and my information in the Iphone go excess.
    Hope to get some solution

  • Word save as format and apple script

    Hi,
    I want to open my doc file and save as docx file. What is the proper file format to do this.
    I have use the following code:
    set mydoc to "/Users/administrator/Desktop/Sample.doc"
    tell application "Microsoft Word"
      activate
      open mydoc
      save as active document file name "Sample_new.docx" file format format document
      close active document
    end tell
    But it saving the file in Compatibility Mode. So i want to know whether it saving the file docx or not.

    It's much easier to use the command line textutil utility.  in applescript you'd use:
    do shell script "textutil -convert docx /path/to/wordfile.doc"

  • Keynote and Apple Script

    I need a script, runnable on a Mac acting as a server, that can do the following without human interaction.
    1. Open a keynote file - we can open keynote file manually
    Automative should finish following tasks ..
    2. From the "Share" menu within KeyNote, select "Export..."
    3. Choose "Images", keep the format as 'Jpeg' and the quality at 66%, click "Next..."
    4. Create a "New Folder" (may be we can create similar file name like 1.key ----> folder name 1/but this should be done by automatic )
    5. Click "Export"
    6. close keynote
    I need this to be able to run from the command line somehow. I'm not sure the best way to do this: applescript? or work flow ?
    thanks fin advance

    The following script seems to work flawlessly under Mac OS X 10.6.5 with version 5.0.4 (633) of Keynote ’09, using the +default preferences+ of the application.
    Since the script uses [GUI Scripting|http://www.macosxautomation.com/applescript/uiscripting/index.html], you should first enable the Accessibility Frameworks by clicking the checkbox labeled "Enable access for assistive devices" in the Universal Access System Preference pane.
    To run the script from the command line, just type something like the following in the Terminal window:
    *~ username$ osascript /Users/username/Desktop/Keynote\ script.scpt*
    if the compiled script, for instance, is named "Keynote script.scpt" and located on the Desktop.
    (You migh need to adjust the delays if necessary.)
    --Change the following two lines to fit your needs:
    *set theKeynoteFile to POSIX file "/Users/pierre/Desktop/My Keynote Slideshow.key" as alias*
    *set theDestinationFolder to POSIX file "/Users/pierre/Pictures/" as alias*
    --Create a new folder (temporarily located on the desktop) where to export the slides:
    *tell application "Finder"*
    *   set theFolderName to text 1 through -5 of (get the name of theKeynoteFile)*
    *   make new folder at desktop with properties {name:theFolderName}*
    *   set theExportFolder to result as alias*
    *end tell*
    *tell application "Keynote"*
       activate
    *   set theSlideshow to open theKeynoteFile*
    *   repeat until theSlideshow exists*
    *      delay 1*
    *   end repeat*
    *   delay 1*
    *   if playing then*
    *      stop slideshow*
    *      delay 1*
    *   end if*
    *   tell application "System Events"*
    *      tell process "Keynote"*
    *         click menu item "Export…" of menu 1 of menu bar item "Share" of menu bar 1*
    *         delay 0.25*
    *         tell sheet 1 of window (displayed name of theKeynoteFile)*
    *            click button "Images" of tool bar 1*
    *            delay 0.25*
    *            click pop up button 1*
    *            click menu item "JPEG (variable quality)" of menu 1 of pop up button 1*
    *            delay 0.25*
    *            set value of text field "Quality:" of group 1 to "66%"*
    *            keystroke tab*
    *            delay 0.25*
    *            keystroke return* -- click button "Next…"
    *            delay 0.25*
    *            if value of checkbox 1 is 0 then click checkbox 1*
    *            delay 0.25*
    *            click radio button 2 of radio group 1 of group 1*
    *            keystroke "d" using command down* -- desktop
    *            tell outline 1 of scroll area 2 of splitter group 1 of group 1*
    *               select row 1 whose value of static text 1 is theFolderName*
    *            end tell*
    *            keystroke return* -- click button "Export"
    *         end tell*
    *         delay 1*
    *         click button "Export" of sheet 1 of window 1*
    *      end tell*
    *   end tell*
       quit
    *end tell*
    *tell application "Finder" to move theExportFolder to theDestinationFolder with replacing*
    Please let me know if the script doesn't work as expected.

  • Yahoo e mail and apple passwords

    First as I see others are getting is a pop up for yahoo pasword.
    Now once in Ymail the message to verifiy my apple info and my account has been frozen!
    NOT frozen I've sent on to phs. alert at apple, it has no gift box or anything that would make you think...until the sent from didnt look right.
    Beware!!

    Hints on writing a post.
    Power off the device.  State each step you take to reach the problem.
    poweron
    enter password
    start firefox
    enter web address of yahoo.com
    click on email icon
    etc.
    Include some pictures.
    How to show us a screen image.  Avoid personal identification.
    command + shift + 3   Will take entire screen.  You hear a click.
    command + shift + 4 Lets you decide what to take.  Mouse pointer changes. Move mouse to upper left corner of desire image.  Hold down left mouse key where to start image.  Drag mouse to lower left of where you want to stop image.  Release mouse.
    You will get a picture n.png file on the desktop.
    On the forum input panel you will see the camera icon.
    click on camera icon.
    another window will appear.
    Make sure you have selected the from your computer tab.
    click on Browse button
    An open file panel appears.  Select the file.
    After selection a file, I have this screen showing.
    You will have to click on Insert Image.  You may have to scroll down to see Insert Image button.

  • Apple Script: Incoming Mail - bigger Text with Rule

    Salve!
    Have some Problems to create an Apple Script. At first - some Mail Accounts from Incoming Mails in Apple Mail App (Mountain Lion) are very fine with Font Size. Some Mail looks like Font Size 6 in the Inbox. Ok, i can size the Font higher with CMD and + ... but it is manual... i dont like this workaround.
    So i create an new Rule in Mail App - Incoming Mail from XYZ and then start this Apple Script XYZ...
    But i am an beginer with Apple Script and it will not work. Can you please help me? I will start the Script with Apple Rule. And the Script must formated the new incomming Mail with Font Size 12 (or 14... or... Number is only one Number)...
    Can you help me please?

    Launch Applications > Utilities > Terminal.app and see if the undocumented defaults setting defaults write com.apple.mail MinimumHTMLFontSize 12 (that's mentioned here) works for you.  That example sets the minimum font size to 12.  You might need to restart mail after the change; I haven't used this setting in a while.

  • Apple script for Message box when Mail app Compose Window Opens

    Hi there
    I'm trying to make mail app remind me to choose the right emaill address to send from since I have several email addresses. Is there a way I can make or write an apple script for a message box to pop up whenever mail app's compose window opens up.
    I can do for the case when I actally click the compose button when I'm on mail app by using UI scripting. But when it comes to hyperlinks which opens up the compose window, it fails.
    I just want a script to see whether the compose window is open and if open pop up a message box.
    Thanks
    Best regards
    Zam Shabeer Thahir

    TaoChitpol wrote:
    By the way, the problem happens with the account of MS Exchange service, I don't know if this is the cause of the problem.
    I think yes.  The encoding is being corrupted somewhere, probably Exchange.  There is nothing you can change on the iPad other than the OS languagel, to see if that helps.  You can also tell Apple at
    http://www.apple.com/feedback/

Maybe you are looking for

  • About material master data batch input

    hello     i wrote a batch input for material master data. but it can't work ,i can't use it to create material.hope someone help me!thanks.code is below. report z_mat_batchinput no standard page heading       line-size 255 message-id YB.        mat b

  • How can I find overlapping pivot tables?

    I am getting errors in my Excel workbook that contains around 50 reports that say "A pivot table cannot overlap another pivot table". I tried to insert rows inbetween tables on each worksheet but it did not solve the issue. How can I find which repor

  • BUG? Data Action on Struts changing to Data page when i reload Jdev????

    Hi All, i'm using jdev 10.1.2, adf bc's, struts, jsp's. I have a data action on my struts page which is bound to a method in the app module. I created a class for this data action which overrides the initialMethodParameters() method and gets the argu

  • Ingesting Multiple Cards Simultaneously In Prelude

    I've got a 4-card CF card reader to help with downloading footage in the field from a C300 and a 1DC.  Is it possible to ingest multiple cards simultaneously within Prelude?  And, if not, is there any downside to just copying the files over in Finder

  • Image Quality Processing Multiple Images

    When I first installed PSE, I could process multiple images and have the new image auto saved at the same image quality of the original. Now it changes to a value of "3" ...and I can't figure out how to predefine it to a higher quality