Opening two attachments

Can we compare two attachments in the same instance. For Example there are two attchments we are getting as input in the same instance.Now if we want to compare the two attachments is it possible .Please let me know how can that be done.

Hi,
Here's one approach to comparing the attachments with one another. It's a bit of overkill for your needs (it compares every attachment with every other attachment that the instance has), but hope it helps.
Please don't put the "display" statements in production. They're just there to provide a simple example.
comparisonResults as String
if length(attachments) > 1 then
     // are any the same?
     for i in 0..(attachments.length() - 1) do
          for j in 0..(attachments.length() - 1) do
             // do not compare it with itself
             if j != i then
                logMessage "Comparing " + attachments.fileName + " with " + attachments[i].fileName
          using severity = DEBUG
          if String(binary : attachments[i].contents, encoding : "ascii") = String(binary : attachments[j].contents, encoding : "ascii") then
          logMessage "The files " + attachments[i].fileName + " and " + attachments[i].fileName + " match"
          using severity = DEBUG
          comparisonResults = comparisonResults + attachments[i].fileName + " is the same as " + attachments[j].fileName + "\n"
          else
          //display String(binary : attachments[j].contents, encoding : "ascii") + "\n" + String(binary : attachments[i].contents, encoding : "ascii")
          end
          end
          end
     end
     display comparisonResults
else
display "Please add some attachments so you can compare them"
action = REPEAT
endDan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Nokia 9300i and e65 won't open word attachments

    I have a problem opening word documents created with office 2004 for mac on my two nokia smartphones 9300i and e65 when I email (with Mail) them as attachments to the phones.Please note that:
    - no problem opening emails with these word attachments on Windows PCs.
    - no problem opening these word files on the phones when sent to them via bluetooth.
    -no problem opening word attachments whwn emailed to the phones with a PC
    - and finally, no problem opening these word attachments on the phones if previously emailed to a PC, saved on it and then emailed backed to the phones.
    - I checked the two phones with nokia after sales service and all related email settings, the devices are al ok.
    It may be a problem connected to the 10.4.11 update.
    Can anybody help?
    Thankyou very much
    PACucino

    P.S.: of course word docs mentioned in my post on this subject and not viewable on the two nokia phones are created on my ibook G4
    P.S2: I can only view the email text on the phones not the .doc attachments
    please help
    thankyou
    PACucino

  • TB (currently v31.1.2) does not open certain attachments (e.g. jpg, pdf) properly.

    I've been having trouble opening certain attachments, notably .pdf and .jpg. Example: today I wanted to open a .jpg attachment. I right-click on the attachment and select Open. I get about one-third of the picture okay and the rest is just a muddy grey colour. For both pdfs and jpgs the file also shows in the body of the message as a collection of weird characters at the end of the message underneath the name of the file.
    [As an aside, I deal with this jpg problem by using my iPhone, opening the image, pasting it into the BODY of a new message, sending that message to my email address, opening that email in TB and then copy & paste to where I want it. I haven't yet found a way around the PDF problem except by opening and reading on my phone.]
    From the support pages I'm guessing this is a problem associated with mimeTypes but that is a step too far for me :) I go to Tools>Options>Attachments but just see a box that shows me two tabs (Incoming and Outgoing). Under incoming, none of the entries mention .pdf or .jpg and there is no mechanism to add such an entry even if I knew what I was doing.
    Any help/thoughts would be appreciated (running Windows 7 64 bit)

    Thanks for this Matt and Toad Hall. It makes sense to me. I had to install a firewall on my machine (long story ... to do with a game I play and a new VOIP router) and later, but around the same time, installed an update from TB. It was after the update that the trouble started so I assumed it was a TB issue.
    But although I can't check this, it is quite possible that I didn't receive any emails with PDF or JPG attachments between the time I installed the firewall and later installed the TB update and thus the problem caused by the firewall didn't show until after the update.
    The firewall is part of the Outpost suite from Agnitum (recommended by my ISP) so it all seems to tie in with what you have said.
    I have now attended to the issue with the firewall and it all seems to be okay.
    Many thanks

  • Opening calendar attachments on iPad 2

    I have an iPad 2 running iOS 5.0.1.I have a question though, I have a PC which is running Outlook 2003, with an Exchange 2003 server. When I set up and calendar entry and attach some documents for a meeting, I can see the attachments and open them on my PC. On a Mac Powerbook running Entourage I can open the calendar and open the attachment, but on my iPad 2, I can see the calendar entry but I cannot open the attachments.......is this a flaw in Calendar or am I being stupid????

    Document transfer through meshed peer to peer networking is the perfect example of a dysfunctional office environment.
    Wasted bandwidth disseminating the same 30MB slide Deck file to 50 people through "attachments" when a link to an NAS that is on a proper share point with documentation management policies to ensure everyone is using the most up to date information is how information collaboration is done with efficiency.
    It's not a "semi-solution" it's the way that organizations who value documentation integrity, network efficiency, and successful collaboration across different hardware platforms conduct business.
    Who wants to download 'hundreds of emails' and calendar invites with attached binaries every day on a cellular connection from exchange servers that could be virtualized, running unoptimized infrastructure giving the ios based mobile devices "terminal checking for mail" syndrome because webmail based exchange authentication gets last priority?
    Not me.
    What if the documentation changed when the calendar invite and attachment arrived in your inbox, and now it's two weeks later and 5 revisions had been made to the document?
    Maybe that's why you have over a hundred emails a day. Everyone pushing revised documents in re: threads that simply say "update" with and the time punched in by the user even thigh email is auto time stamped.
    Pitty.

  • Can't see, quickview or open email attachments...

    iPad 2-I can receive emails fine, but cannot see, quickview or open email attachments. I've been sent PDFs and can see a paper clip icon in email list view, but no PDF icon in the email.
    Why?
    Thanks.

    How about something really crazy and unheard of? 
    I have two email accounts with Google Mail.  Both are the only ones set up in the Mail app inside my iPad2.  One would load everything: .jpeg, .docx, .pdf, and everything.  The other would not. 
    I tried hard reset multiple times, deleting both email accounts and hard resetting.  I cut all processes using SBSettings and killed all processes related to mail.  So I have nothing running now, and I deleted all of the readers, Doc to Go, Quick Office, and other apps I had added.
    Now I have nothing running and no apps installed.
    Then I set up mail again from the bottom, as if the iPad came in the mail today.  One gmail account still automatically opens and previews .jpg attachments, and show .doc, .pdf attachments with their respective icons.  THE OTHER GMAIL ACCOUNT IN THE SAME iPAD MAIL APP DOES NOT OPEN THE SAME MESSAGES I HAVE FORWARDED TO BOTH.  I would see an arrow pointed down in the icon inside that "faulty" mail account, and the name of the attachment below the icon.  I have pressed my finger a gadzillion times on those icons, only to see the spinning wheel briefly and nothing.  Holding them down would do nothing, and i can't open in other apps.
    The wackiest thing is... when I hit forward (by tapping the curved arrow at the top), I get a drop-down choice list: "INCLUDE" and "DON'T INCLUDE" attachments.  When I tap on INCLUDE, .jpg files immediately load and show in the reply message, only two of four .pdfs load and open, but no .docx attachments would.
    How would we be supposed to troubleshoot or fix something like this?

  • I can't open two eml files with Thunderbid

    I want to open two .eml files with Thunderbid. When I try to do it, I can open the first, but when I try to open the second Thunderbird doesn't do it.

    It sounds like the files that aren't working are likely corrupt or perhaps not properly designated as .eml files. When you say "Thunderbird doesn't do it" do you mean Thunderbird doesn't launch, or do you mean it tries to open the file and returns an error? The error could be helpful in the latter case, as could information about where the file came from. In the former case, FYI, when I drag attached .eml files (from e-mails forwarded as attachments) to my desktop, they are named "Inbox" (as opposed to Inbox.eml). I rename them to add the .eml and then I can open them with Thunderbird, but otherwise I will be prompted by Windows for what to do with them.

  • I cant open email attachments since ios5 update

    Since updating to ios5 I cant open email attachments, (word, excel or pdfs)- help please!

    Please follow these directions to delete the Mail "sandbox" folders. In OS X 10.9 there are two sandboxes, while in 10.8 there is only one. If you're running a version older than 10.8, this comment isn't applicable.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder—not just its contents—to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Repeat with this line:
    ~/Library/Containers/com.apple.MailServiceAgent
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How can I open all attachments in mail at once?

    I use Mail to collect messages from the IMAP server rather than logging in through my university's webmail interface.  I often get mail messages with many attachments that all need to be opened at once (example: an admissions application that has 7 or 8 components for me to review).  Clicking on each of them separately is a pain, particularly since I have repetitive strain issues, and the various applications needed to open the attachments (Word and Adobe Reader for example) want to grab focus after every click, forcing me to keep switching programs.
    Is there any way I can tell Mail to just open all attachments to a message at once?

    Try:
    Select the attachments you want to open. (Use click, shift click, command click, as usual.)  Control-click on (one of) the selected attachments. Then select "Open Selected Attachments".
    charlie

  • CAN NOT OPEN YAHOO ATTACHMENTS IN SAFARI

    SINCE THEN I UPDATED SAFARI 5.0.4 ON MY MAC I CAN NOT OPEN ANY ATTACHMENTS IN YAHOO MAIL ON SAFARI IN MAC. HAVE CHECKED WITH YAHOO THEY ADVISED TO CONTACT APPLE/SAFARI
    PLEASE ADVISE

    Hi,
    Try resetting Safari. From your menu bar click Safari/Reset Safari. Select the top 7 buttons, click Reset then restart your Mac.
    Carolyn

  • Can not open email attachments in yahoo mail

    I can not open any attachments in my yahoo email account using firefox. However I can open them in IE. Please help!

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    (You also can clear Firefox's cache completely using:
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now")
    (2) Remove the site's cookies (save any pending work first) using either of these. While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?

  • Why can't I download or open tif attachments on my iPad Air and IPhone 5s in mail running 7.1.2?

    Why can't I open tif attachments on my iPad Air and IPhone 5s in mail running 7.1.2?
    Tap to Download icon flashes but does nothing.

    I just hooked this thing up to my computer and was able to load new apps and update via the app store that way, installing them onto the iPad via sync. Very annoying though as I cannot make in app purchases etc still.
    Wish apple wouldn't pull this kind of junk.

  • Mail opens two Safari windows when I click on a link in email

    When I click on a link in Mail, it opens in Safari -- that's the way I have it setup. Yet, the problem is that it opens two windows in Safari, one empty and one with the content of the link.
    This is the second problem I have with Mail. The second one was posted to this discussion but it was not resolved. I repeat here the text of the problem:
    I've been having a problem with mail for a while, when sending attached JPEGs from my Mac using Mail or Entourage. The photos are split -- say a 140 kb file will show up in my two other computers (both Windows PCs) as two files, one 65 kb and the other 75 kb, for example.
    Yet, when I click on Mail's (in my Mac) sent folder and click on the particular sent email, it shows a full blown 140 kb attachment, not split.
    Several weeks ago, my Mac Address book got cranky and for some reason it would repeat the name of an addressee. I finally deleted the name of that addressee and created a new entry and it seemed to work, so it did not split JPEGs -- or at least I thought that was the case.
    Now it is back splitting the JPEGs but this time, the addressee's name is well formatted -- no repeats within the entries in the card in Address Book.
    When I mail something from my Windows PCs and open it in my Mac, the file is complete.
    What could be causing this split?

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    * https://support.mozilla.com/kb/Searches+are+redirected+to+another+site

  • Is a Windows registry error responsible for Firefox opening two browser windows whenever I use a hyperlink from a Word file?

    Whenever I use a hyperlink from an MS Word document, Firefox opens two windows instead of one. The first window is the one I need. The second contains a message that the page could not be found and the address bar contains the URL appended with "Firefoxhtml/shell/open/command".
    This problem is similar but NOT identical to one in MozillaZine headed "Windows error opening internet shortcut or local HTML file - Firefox". But none of the solutions in that article work for my problem: I've disabled all extensions but that hasn't helped. I've tried editing file types so that the DDE is removed (I'm not a teccie so have no idea what that means), but after following the instructions to the letter it doesn't seem to remove the DDE. Also I read that removing the DDE is not a good idea for people like me who need to open numerous firefox browser windows at one time. Furthermore, the MozzilaZine article refers only to problems opening a URL link in a MS Outlook email when Firefox is NOT running. My problem concerns the opening of URL links in MS Word when Firefox IS running!
    I've run countless different virus programmes, rootkit checkers etc but they all come up blank. However, I did come across guidance on this website: http://antivirus.about.com/od/windowsbasics/a/shellopen.htm which suggests that something may have altered the shell open command for two registry keys used by Firefox.
    # HKEY_CLASSES_ROOT\htafile\shell\open\command
    # HKEY_CLASSES_ROOT\htfile\shell\open\command
    The default value for each of these should be "%1" %*. But on my user, the default value reads:
    (for htafile) c:\windows\system32\mshta.exe "%1"%*
    (for htfile) c:\programfiles\windowsNT\hypertrm.exe"%1
    What should the value be for these two files?
    Can anyone sort this for me please? Bear in mind I'm not a teccie!

    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Terminal won't stop opening two windows.

    Every time I open Terminal, it opens two windows. One window has a bunch of text at the top that appears to be old commands(perhaps that I had typed? I don't remember all that I've typed into Terminal since the beginning of time ) in grey and then the normal Terminal prompt in the usual green(that's the theme I have) after all the text. The second window is in a fullscreen space thingy(Lion's mission control interface) and it looks similar except the text is different and there is a LOT more of it.
    I'm not quite sure what to do to make this stop. I've tried deleting the plist file for Terminal. I've tried restarting the computer. I've tried closing both windows, opeing a new one, positioning how I'd like it posistioned, then quitting Terminal by holding alt/option and cliking "Quit and Keep All Windows" from the Terminal menu.
    Is there a place where there are setting files for an app's window positions/defaults?
    It may also be good to mention, as it seems possibly relevant, that every time I open iPhoto, it opens in a fullscreen space much like the second Terminal window. I've tried similar things on iPhoto to get IT to stop doing this.
    Thanks for any help!

    Okay, so I actually found a solution to the problem!
    I cannot claim it as my own since I found it on another discussion page as well as CNET, but I'll post what I did here for others to see.
    The two helpful pages were:
    http://reviews.cnet.com/8301-13727_7-20083707-263/managing-mac-os-x-lions-applic ation-resume-feature/
    and
    https://discussions.apple.com/message/15859853#15859853
    What I did was:
    1. Enable "Restore windows when quitting and re-opening apps" under General in System Preferences(I don't know for sure if this is necessary, but it seemed harmless with my new found knowledge as you'll see in a moment)
    2. Navagate to "~/Library/Saved Application State/" in Finder
    3. Find the folder named "com.apple.Terminal.savedState"
    4. Move it to the trash
         This resets the state that the application uses to open each time it opens, when you open it now, it'll recreate the folder
    5. Launch Terminal
    6. Open the Get Info dialog for the newly created "com.apple.Terminal.savedState" and tick the "Lock" checkbox
         This prevents the contents of the folder from being changed, resultantly preventing ONLY Terminal from saving the state of it's windows on closing.
    Not only did this solve THIS problem, but it opened up some cool options:
    -By Locking any of these folders, one can keep a sort of template for how they'd like the windows of an application to open every time.
    -One can leave on the "Reopen windows" preference but select applications for which they do not wan't it to work. It is a semi useful feature, and I can understand why it was added, it just seems like an oversigt that it was only a global or no feature.
    -One can reset the window options of any trouble making apps in the future.
    Note: This also solved the problem I was having with iPhoto!

  • Open two files / documents

    Hell there
    I just upgraded to CS 4. In CS 3 you could open more than one ID file and drag pages from one document to another, etc. etc. But by default, ID only opens one file at a time with a tile bar to switch between the two files.
    Is there a way to set ID so that it opens two files like before?
    Thanks in advance for your help.
    Eric W.

    In the Interface options, disable Open Documents as Tabs.
    That said, instead of dragging pages, open the pages panel menu and use
    the move pages command. It's far easier to use and much more precise.
    Bob

Maybe you are looking for