OS X :: Use Specified Program To Open Mail Attachment

Aug 6, 2009

I have a mail attachement with the extension .gem, and I would like to use that attachment as the argument to a java .jar program. I've figured out how to start the java program using a shell script like this:
#!/bin/bash
java -jar /Users/geoff/Programs/program.jar $1
If I name this script program.sh and change the permissions to allow execution, I can successfully run the program by typing this in a terminal window:
./program.sh filename.gem

However, when I try to open the attachement filename.gem from mail, it won't let me use program.sh to open the attachment. The OS seems to make a distinction between a file and an application that is independent of the execute permission on the file. After doing some reading about this, I tried Automator. One of the Automator actions is to execute a shell script, so I added that action to my Automator project and typed in my command:
java -jar /Users/geoff/Programs/program.jar $1

I also changed to input from options from "stdin" to "argument". I then saved the Automator project, and was able to associate that project with the .gem file attachment from mail. The java program started, but behaved as if the $1 argument was not included. (Perhaps I just need to leave out the "$1" in my Automator command, trusting Automator to insert the argument in the proper place. If that theory is correct, my program is interpreting the text "$1" as an argument, which would be consistent with the behavior that I'm seeing.) I've seen other suggestions to use AppleScript, but it seems to me that there ought to be some simple way to do this. (I just got a Mac, by the way. I was able to do this in Windows using MIME type definitions and a .bat file. The difference is that Windows allowed me to consider program.bat as an executable, but Mac OS doesn't consider program.sh to be an executable.)

View 1 Replies


ADVERTISEMENT

OS X :: How Can I Open E-mail Attachment File From A Trusted Source?

Oct 31, 2009

I received an e-mail attachment file from a trusted source, type .xfdl. Tried to open but was denied the reason was "this type of file may contain spam or a virus". I know the file has already been read by several individuals who said no spam or virus detected.

View 10 Replies View Related

OS X V10.3 :: Delete Mail Message With A Large Attachment That Computer Cannot Open?

Jun 10, 2012

How can I delete a msg in Mac os  mail that has a very large attachment that the comp cannot open or delete?

Info:
FP iMac , Mac OS X (10.1.x)

View 2 Replies View Related

OS X V10.6 Snow Leopard :: Can't Open Mail / Header Bar Is Grayed Out And Program As Itself Doesn't Open

Jun 8, 2012

I launched Mail as I ordinarily do. It opened up, but the header bar was grayed out. Finally I managed to open program via Message/Go To/ Inbox, but no messages appeared in any of my mailboxes (even though I had several still in there from today). Nothing is happening, I even can't quit teh mail program.

Info:
MacBookPro, Mac OS X (10.6.8)

View 1 Replies View Related

Applications :: Mail Program Will Open And The Circle Will Start Spinning / Trying To "get Mail?

Oct 6, 2009

I have a Macbook Pro. It has OS 10.4 The mail program will open and the circle will start spinning like it is trying to "get mail." it will spin and spin and eventually close. It will pop up and say mail quit unexpectedly will show that report and reopen box. hen mail is open and the circle is spinning, you can send mail and it works fine. It just will not load new mail.aNy ideas? The mail is version 2.1.3

View 3 Replies View Related

Software :: Use The Mail Program To Sync Gmail But Doesn't Open

May 18, 2008

I am using a MacBook Pro with Leopard. I wanted to use the Mail program to sync my gmail to but I have noticed that the Mail program does not open. The icon is no longer the mail icon and is now the ruler, pencil paintbrush icon. When I double click on that icon nothing happens.

View 1 Replies View Related

Mail Program On IMac Will Not Open Winmail / Data Attachments

Mar 31, 2012

My IMAC Mail program will not open winmail.data file attachments. What program or additional software do I require to be able to open these files?

Info:
iMac

View 2 Replies View Related

OS X Mavericks :: Mail Program Frozen With One Message Open And Gray

Sep 4, 2014

I am on mac laptop OSX 10.9.2  using Mail 7.2.  I tried to open a "Mailer Daemon" message and it is frozen, not even open but a grey colored blank "message".  I've tried: closing the message unsuccessfullyForce Quitting the application (reads "Mail (not Responding)") when I do.  (4 times)Turning off the entire computer, letting it rest and rebooting. (3 times)Opening up my server on the internet and deleting the offensive message "mailer daemon"Turning off the computer again. 

So...as soon as I open mail, the grey "message" is open.  I can click on the Mail Viewer window and have that come forward, but all is frozen.Just did it again and it hasn't changed.  Had to force quit again.  Never before in 8 years of using the Mail application (different computers).  The rainbow wheel of death spins and spins. 

Info:
OS X Mavericks (10.9.2)

View 4 Replies View Related

OS X V10.4 :: Can't Open Email Attachment

Mar 18, 2012

Received an email attachment jpg (777 KB) which was clearly visible in the message window as well as when I opened the attachment itself -so no problem. However I needed to have some alterations made to this file (business card) I duly received two consecutive attachments, which were the alterations to my business card (the 777 KB file. These two files were now 1.3 MB and 1.4 MB in size, they appeared in the message window as large black images (nothing visible) which I was unable to open.As I did not know the problem, suggested to the sender to perhaps reduce the file size, as I was able to open the original file. The sender re-sent the re-sized file now reduced to 744 KB, similar in size to the first one, again appears as a large black image.Now we are at a stalemate, the sender says he has four computers and the images appear fine on all four

View 4 Replies View Related

OS X V10.7 Lion :: Open A Winmail.dat Attachment?

May 8, 2012

How do I open a "winmail.dat" attachment?  I've only been using MAC since 12/11 and I still have a lot to learn!  

Info:
MacBook Pro (13-inch Early 2011)

View 2 Replies View Related

Intel Mac :: Open A PDF Attachment From A PC Email?

May 15, 2012

received email from a pc customer with a pdf atatchment  how do i open this ?

Info:
iMac, Mac OS X (10.7.3)

View 3 Replies View Related

OS X :: Received Email With WPL Attachment - Unable To Open?

Jan 25, 2010

I received a email with a ".wpl" attachment which I am unable to open. I do have "Flip4Mac" but no luck anyone have any ideas. Frankly I have never seen a .wpl before so what is it?

View 4 Replies View Related

OS X :: Right Click For Attachment In Mail For Mac?

Feb 22, 2010

I used to do this all the time in windows, is it possible to do on a mac?

Right click a file, and open it as an attachment in Mail?

View 3 Replies View Related

OS X :: Any Keyboard Shortcut To Mail An Attachment?

Mar 29, 2009

Is there a keyboard shortcut in Mail or Finder to email a selected file(s) as an attachment? I'm thinking of something analogous to how shift-command-i in Safari automatically pastes a link to whatever you're viewing into an e-mail message, for you to address and send.

View 12 Replies View Related

OS X V10.7 Lion :: Unzip A Mail Attachment?

Apr 4, 2012

Received an email attachment that is zipped, and instructed to open it with Archive Utility. For some reason I cannot open it, or if it is open, find it.

View 3 Replies View Related

OS X Yosemite :: Word Keeps Crashing When Attempt To Open Docx Email Attachment

Dec 9, 2014

Word keeps crashing when I attempt to open an .docx email attachment, how to I stop word from crashing and be able to open the file?

Info:
MacBook Air, OS X Yosemite (10.10.1)

View 4 Replies View Related

OS X :: Any Way To List Mail With Attachment And Sort By Size?

May 3, 2009

Does anyone know of an easy way to search through Apple Mail to list all the messages with attachments and sort them by size? I was hoping to slim down my mail folder.

View 7 Replies View Related

OS X :: Mail Application Attachment - Replacing Link Possible?

Dec 2, 2009

I'd like to be able to save an attachment from an email to my hard drive, and then have it replaced in the email by a link or alias that links to the file on my hard drive. Basically, so I can remove the attachment from the email and save space in my Exchange inbox allowance, but still be able to easily find the attachment from my hard drive if I need to refer back to it. I had this feature in Lotus Notes from my Windows days and it was really useful - is it possible on a Mac?

View 5 Replies View Related

OS X :: Apple Mail Signature Being Read By PC As Attachment

Mar 23, 2010

I have a signature set up in Apple Mail with an image. When I send an email to a PC user, they do not see my signature in the body of the email. The signature is viewed as an attachment. Is there anyway to resolve this in Apple Mail? I know if I set the signature to plain txt instead of rtf this works, but then I can't have a fancy image signature. If I move across to Entourage, will this solve it? Is it a limitation on Apple Mail's side?

View 2 Replies View Related

OS X V10.7 Lion :: Forwarding An Email From Mail It Comes In As An Attachment On PC?

Mar 27, 2012

When I forward an email to my bookkeeper through mail, it always comes in as an attachment on her PC. She says this happens to another person as well who is using a Mac?

View 3 Replies View Related

OS X V10.7 Lion :: Apple Mail Does Not Show Attachment?

Mar 29, 2012

Once I could see which of my emails had an attachment but now I cannot.  There once was an icon next to message in the email list to indicate the attachment and its name.  The attachments are there.  Also at one time I could sort my email by attachment.

Info:
MacBook Air, apple mail

View 1 Replies View Related

ICloud :: Multiple Attachment Download In Mail

Apr 16, 2012

Have an email with 18 attachments (word and excel stuff) is my only option to click (or right-click) each one to download them?? or is there a quicker (read simpler) way.This is via web browser iCloud, as I'm running an older macbook Pro.

Info:
MacBook Pro, Mac OS X (10.6.8)

View 1 Replies View Related

OS X Mavericks :: Print Mail Attachment Without Saving It First?

Jun 26, 2014

With Mail in Lion, I could scroll to the bottom of an email and double click on the icon for the Word doc or pdf attachment to open it, then hit command P to print it. With Mavericks, it appears that I have to first "save" the document somewhere and then open it and print it. Is this correct?  

In most cases, this is an extra step that is unnecessary. 

Right now, the attachment displays (opened) within the email, but I don't want to print several pages of an email when all I want is to print the attached doc, for instance, an attached invoice. Also, I can't tell what kind of document it is without saving it, which I don't like. I've tried to find a way around this in preferences but no luck.  

I guess what I'd really prefer is to go back to the old Lion version of Mail, or something that approximates it more closely. Do I need to just get over it and realize that I'm going to have to save every attachment if I want to print it or is there a workaround of some sort?

View 2 Replies View Related

OS X Mavericks :: Mail Attachment Icons Very Small Now

Jun 4, 2014

I just updated to Mavericks, and it is not as scary as I thought, however I use lots of attchments and ther used to be a slider to make the icons larger. Now they are uber small and very hard to read or see. Is there any way to make them larger?

mail 7.3

os 10.9.3

Info:
Mac OS X (10.7.3), 2.8 GHz Intel Quad Core i7 8GB 1067 MHz DDR3

View 2 Replies View Related

MacBook Pro :: Sending Large Attachment - Mail Frozen

Nov 17, 2008

Yesterday I tried to send a Quicktime movie that I made with iMovie as an attachment to an email. I knew something was wrong when it kept "sending" for hours. I could not get it to stop, no matter what I tried. I used Force Quit on Mail: no effect on the spinning circles. I shut the computer down and then restarted. Signed into Mail--> still had spinning circles. I took the mailboxes offline and then put them back online: spinning circles remained.

I deleted all of the outgoing messages several times, but whenever I came back, they reappeared. I shut off my computer overnight. This morning the spinning circles are gone, and a static circle remains, and I am unable to send or receive email. What can I do? I have four Mac mail accounts and they all have important information in them. How can I unfreeze my mail? BTW, the gmail accounts that go to the mac account are ok--it is just the "@mac.com" accounts that are frozen. I cannot find this in a search.

View 21 Replies View Related

OS X :: Mac Mail Inline Attachment Icons - Display In Header

Sep 24, 2009

I've been really miffed by Mac Mail's behaviour for adding attachments. When I add seemingly any sort of file into an email message, it sticks an icon of it exactly where my cursor is. This is pretty ridiculous - it messes up my formatting (line spaces etc) and looks silly in the middle of my message.

Is there any way to simply display the attachment icons only in the header of the message? I think Mail Attachments Iconizer is meant to do this, but I'm hoping there's a way within Mail to do this. To clarify I'm not talking about expanding images inline, but the fact that there's an icon of the attachments in the body of my message.

View 7 Replies View Related

OS X V10.7 Lion :: Mail 5.2 - PDF Attachment Exceeds Maximum Size

Apr 23, 2012

When attaching a simple PDF (size 15.8MB) to a simple OS Lion email, when going out it expands to 21.4 MB. This exceeds my ISPs 20MB maximum file size. Why a simple PDF would expand by almost 5 MB. The same email without the attachment is only 400 KB.

Info:
Mac OS X (10.7.3), Mail

View 2 Replies View Related

OS X Mavericks :: Where Apple Mail Attachment Files Stored In 10.9.3

Jun 4, 2014

I am trying to locate an attachment file from a recently deleted message.  The message is no longer in my trash, so I can't access the file through Mail.  In the past, there was usually an archived copy somewhere on my hard drive, but it seems to have moved in my most recent update of Mac OSX.  It used to be in the Library folder in my user folder, but now there is no Library folder in that location.  Where do I find these files?

Info:
Mac mini (Late 2012), OS X Mavericks (10.9.3)

View 1 Replies View Related

Software :: Apple Mail Program Doesn't Send Mail Through Optimum Mail

Aug 29, 2009

I'm having trouble with my Apple Mail program. I have a number of e-mail accounts (some with Optimum online, a g-mail, yahoo, etc.) Apple Mail has no problem at all reading and downloading any mail from any of the services. My problem is with Optimum Mail (Optonline.net). Mail refuses to send anything through that set-up. I've been on the phone for hours with Optimum and the settings are all correct. I've tried connecting directly to the cable modem and mail gets sent. This would make me believe that it is the Apple Airport Extreme router that is at fault. I've tried restarting it, re-initializing it and setting it up again and the problem continues. All my Optimum mail is picked up and can be read but it will not send anything through Optimum. It asks if I want to send it through another server (like g-mail or yahoo) and if I pick yes the mail sends.

It happens on all my computers a G-3 and pre Intel iMac G-5 on Tiger and my Macbook on Leopard.

Anyone else hear of this problem? Both Apple support and Optimum online say they have never heard of it. Talking for hours with their tech departments have found no solutions.

View 1 Replies View Related

Applications :: Mail Attachment Files Display In Organized Manner?

Sep 26, 2010

When I drag and drop attachments to the Mail, its snap all over the place. PDF will be automatically open, whereas spread sheet, doc and email will be shown in icon. Some before my text, some in between my signature, some right below etc. Its all over. Its there a way to let Mail auto display in a more organized manner before I press the send button?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved