Cant attach zipped file

With the guidence of Matt Broughton, my project is screeds ahead of where it was yesterday, but!, as thier always is, ive got one last snag,
File zips up great, but I cant figure how to select it to attach to my mail.
Can select the origional file but all combinations ive tried result in the zipped file not attaching to the out going mail. Ive left the script.
Any help appreciated.
--ZIP ME UP--
on clicked theObject
if name of theObject is "zip" then
set fileChoice to choose file without invisibles
set fileChoice2 to quoted form of POSIX path of ¬
fileChoice as string
set zipFile to (fileChoice & ".zip") as string
set zipFile to quoted form of POSIX path of ¬
zipFile as string
do shell script ¬
"/usr/bin/ditto -c -k -rsrc " & fileChoice2 & " " & zipFile
end if
--ATTACH ZIPPED FILE TO MAIL--
set theAttachments to (fileChoice)
tell application "Mail"
activate
set newMessage to make new outgoing message with properties {content:return & "Attachment: " & return}
tell newMessage
set visible to true
tell content
if ((count of item of theAttachments) > 0) then
repeat with theAttachment in theAttachments
make new attachment with properties {file name:((theAttachment as text) as alias)} at after the last paragraph
end repeat
end if
end tell
end tell
end tell
end clicked
Budgie

Budgie,
I missed the curly brackets.
It should be: set theAttachments to {(fileChoice & ".zip") as string}
repeat with theAttachment in theAttachments
make new attachment with properties {file name:((theAttachment as text) as >alias)} at after the last paragraph
The reason for that is theAttachments need to be a list, without the curly bracets theAttachments is a string.
repeat with theAttachment in theAttachments
Therefore, theAttachment (in theAttachments) is/are letters in theAttachments. The file you select started with M.

Similar Messages

  • Scenario: SOAP message with attached .zip file to FTP ?

    Hi all,
    I've searched SDN etc but got no good hints to my problem.
    My scenario is tht we are receiving an XML message via SOAP adapter and this is a MIME multipart message so it carries also a attached zip-file.
    The XML and the attached zip-file should then be saved over FTP.
    It enters IS correctly and I can see that I have the attachment and it goes to AE. I can see payload and attachment in the statusreport on receiver cc.
    The FTP adapter saves the payload XML correctly but the attachment is not saved anywhere.
    I have not configured any modules, BIC etc in the FTP adapter and I need some input on how to set this up tp put both files on FTP server.
    In the future the FILE adapter will be used and then I wounder if I will get the same problem there?

    I dont think there is a direct way of doing this. I can suggest you a method. In the directory receiver determination use 2 receivers with no condition. You message will get split in to two now. Create the interface determinations and receiver agreements. Complete one of them normally. It will sav the xml t FTP. For the other one, in the adapter use the payloadswapbean. It will swap the attachement to payload. THis one would save your zip on the ftp server.
    Hope its clear..!!
    VJ

  • Error while opening Attachment(ZIP files) in work-flow inbox(Portal)

    Hi Experts ,
    We are getting error , when we try to open the Attachement (ZIP file) link from workflow-inbox(portal side). We are able to open the attachment sucessfully from backend . But we are getting error"Internet Explorer cannot download from void (0).No such interface supported.u201D when we try to open the attachment from portal.The attachment is ZIP file.
    Please help us to resolve the error.
    Edited by: AlokSBP on Apr 16, 2010 10:46 AM
    Edited by: AlokSBP on Apr 16, 2010 10:49 AM

    Thanks for the response...
    The issue is only occurring for the ZIP file extention . we are able to open the document in other files extentions from UWL inbox(portal).
    We have checked few more threads in SDN & got some link mentiioing the Tcode :- DC20 and DC30 (related to file extension) . As explained in the Tcode DC20 and DC30 . the file extention entries has to be maintained.
    We have made the entry of ZIP file in the DC20 & DC30 but still we are getting the same error. I think we are missing some entries to fill.
    It would be great if you can suggest regarding this issue...
    Is this is the cause of the issue ?
    Appreciate your help.....
    Cheers:)
    Edited by: AlokSBP on May 3, 2010 12:40 PM

  • Converting html file into zip file and send email attaching zip file

    Hi Experts,
    I am trying to send email with attachment(html). Which contains more than 7MB. So, It is throwing an error like Size exceeded.
    So, Now i need to compress the data for less than 7MB.
    I decided to convert HTML File into ZIP File.
    Kindly suggest me to convert the HTML file into ZIP file and sending email with attached ZIP file.
    Correct answer rewarded,
    Thanks & Regards,
    N. HARISH KUMAR

    Hi Experts,
    *// HTML_TAB converting into ZIP File
       DATA  : zip_tool TYPE REF TO cl_abap_zip,
               filename TYPE string ,
               filename_zip TYPE string .
       DATA  : t_data_tab TYPE TABLE OF x255,
               bin_size TYPE i,
               buffer_x TYPE xstring,
               buffer_zip TYPE xstring.
    filename = text-007.                                                                          "'HTML_TAB
    *describe the attachment
       DESCRIBE TABLE html_tab LINES tab_lines.
       bin_size = tab_lines * 255.
       CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
         EXPORTING
           input_length = bin_size
         IMPORTING
           buffer       = buffer_x
         TABLES
           binary_tab   = html_tab.
       IF sy-subrc <> 0.
    *     message id sy-msgid type sy-msgty number sy-msgno
    *     with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    *create zip tool
       CREATE OBJECT zip_tool.
    *add binary file
       CALL METHOD zip_tool->add
         EXPORTING
           name    = 'FSSAI_MAIL.HTML'
           content = buffer_x.
    *get binary ZIP file
       CALL METHOD zip_tool->save
         RECEIVING
           zip = buffer_zip.
       CLEAR: t_data_tab[],bin_size.
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer        = buffer_zip
         IMPORTING
           output_length = bin_size
         TABLES
           binary_tab    = html_tab.
    Thanks & Regards,
    N. HARISH KUMAR

  • After attaching  zip file in cv01n its not getting saved

    after attaching  zip file in cv01n its not getting saved

    Hi Jameel,
    Please be clear, I understand that you are using Content Server right?
    OK, then have you defined Content Repository?
    Follow the Steps below:
    1. Goto "OAC0" & Create your own Content Repository  like say (Z_Jameel_CS)
    give the proper description,
    Document Area as "DMS Document Management System"
    Storage Type - > 04HTTP Content Server
    Protocol--> -
    Version no --->0046/0047 ( whatever you are using)
    HTTP Server -
    > (Your content server ip address eg: 139.100.31.311)
    PortNumber--->(ex 1088)
    HTTP Script--> ContentServer/ContentServer.dll
    2.  Click on "CS Admin" Content Server Administration.
    Ask your Basis guy to give you the User ID and Password for the Content Server
    go to "Certificate" Tab,
    you can see your Content Repository created  Click on the "Mail" icon to get the Certificate.
    then just check in the Settings & Statics tabs that all information has come or not.
    3.
    Then Define Content Category.TCode "OACT"
    You need to create a New Category say Z_JAM
    Document Area--> DMS
    Content Repository---> (mention what you created earlier i.e. Z_Jameel_CS)
    then click on the next icon what you see next this field.
    everything from this Content Repostory will be Copied.
    Then checkIn your documents in the Content category defined.
    Regards
    Rehman Khan
    Reward Your Points First.

  • How can I save an attached ZIP file

    I cannot access an attached ZIP file in Acrobat XI Pro. Please help as this is becoming a huge time waster.

    Hi alisonr1825446,
    When you convert a PDF file to Word/Excel, it's automatically saved to your Acrobat.com online account. From there, you can download it to your desktop to edit it, and then save it. To download your file, log in to https://cloud.acrobat.com/files. Select the file, and then click the Download link at the top of the file list. Your file will be downloaded to the Downloads folder on your computer.
    Please let us know how it goes.
    Best,
    Sara

  • Cant download zip.files

    Hi there,
    I cant download .zip files or software updates from any site and Ive tried several browsers.
    It just opens a new page and remains blank? or does nothing.
    I have no firewall on. And have no anti virus software.
    I can click on pdfs and they download fine.
    I using a new intel imac.
    Safari, firefox.
    Hope you can help, thanks.

    Fixed it, it was a program called speed downlod, i removed it and now i can download files, yay!
    speed downloader....more like Stop downloader

  • I was sent an email which I thought was legit . I opened an attachment (zip file) but nothing in it. I phoned the bank to double check, and of course the email was bogus. How can I tell whether my macbook air version X.9.4 has a virus or not.

    I was sent an email which I thought was legit . I opened an attachment (zip file) but nothing in it. I phoned the bank to double check, and of course the email was bogus. How can I tell whether my macbook air version now has a virus?

    No Mac viruses are propagated through email.
    Be vigilant for suspicious activity as you normally should be, but do not download or install some "anti-virus" utility in an effort to fix a problem that does not exist. That's a well-worn path to certain misery.

  • Downloading attached zip file from emails using safari

    How to download, and where will be the downloaded attached zip file in email be stored using safari? How to open and save the zip file attached to the email? Do you need an app to open and store the zip file?

    The app GoodReader (I don't know if there are any free apps that can also do it) can be used to zip and unzip email attachments
    press and hold the zip file in your email - after a couple of seconds you should get a popup, with one option being 'Open in GoodReader' which you should select
    GoodReader should then open with the zip file listed under My Documents
    select Manage Files on the right-hand side of GoodReader, select the zip file, and touch the Unzip button that appears on the right
    You should also be able to download zip files directly into GoodReader by typing the URL in its Wed Downloads sectio.

  • Cant attach multiple files in mail

    How to attach multiple files in mail?? 

    Hey demo..
    When I create a document in 'Pages' app I can mail that file from 'Pages' app. But I cant attach multiple .doc file in one mail. For sending multiple files in a single mail I need to do several mails. Is there any system or 3rd party software through which I can attach multiple .doc files in one mail.
    Thanks in advance.

  • Cant extract .zip files?

    Today i went to download some fonts for photoshop. Ive done it before and it worked but all of a sudden when i download the .zip file, the icon for it is now the photoshop icon and when i double click on the file it attempts to open in photoshop but fails saying that the type of file cant be opened there. This is probably a bit confusing but if any one knows how to help, then please do. Thank you!

    I'm not sure whether you are running Windows or MacOS, but I'll go with Windows.
    Right-click on the zip icon
    Choose Open with > Choose Default program
    Select your zip extractor program and make sure "alway open with this program" is checked.
    Click OK and your zipfile should open properly.
    Make note of this tip,you can use it to set the default program for any file type.
    Gene

  • Problem with attached zip file

    I received an email with a zip file attached, but whenever I try to open it I get the message "Unable to unarchive "filename.zip: into "Desktop." (Error 1 - Operation not permitted)"
    Can anyone help?

    Download Stuffit Expander which can open just about anything you throw at it. You can obtain this "free" utility from Versiontracker and Macupdate.

  • UTL_SMTP mail with attachment( Problem in attaching zip file)

    Hi All,
    I used the below code for sending email with attachment. but when i try to add the message body its not working in the sense its not attaching my file. when i commented that line its attaching the file.
    commented lines:
    -- utl_smtp.write_data(mail_conn,UTL_TCP.CRLF ||'Body' ||':'|| text || UTL_TCP.CRLF);
      --utl_smtp.write_data(mail_conn,UTL_TCP.CRLF||text || UTL_TCP.CRLF );How to resolve this issue???
    Complete procedure.
    create or replace
    procedure sssl_send_mail (
          p_sender varchar2,
          p_recipient varchar2,
          p_cc varchar2,
          p_subject varchar2,
          p_filename varchar2,
          text varchar2) is    
        --c utl_smtp.connection;
        v_raw raw(57);
        v_length integer := 0;
        v_buffer_size integer := 57;
        v_offset integer := 1;
        mailhost    VARCHAR2(64) := 'xxxxxxxxxx';
        port constant number(2):=25;
        timeout number :=180;
        mail_conn  utl_smtp.connection;  
    p_blob Blob;
    temp_os_file bfile;
    ex number; 
    begin 
       DBMS_LOB.CREATETEMPORARY(p_blob,true);
       temp_os_file := BFILENAME ('xxxxxxxx',p_filename);
       ex := dbms_lob.fileexists(temp_os_file);
          if ex = 1 then
             dbms_lob.fileopen(temp_os_file, dbms_lob.file_readonly);
             dbms_lob.loadfromfile(p_blob,temp_os_file, dbms_lob.getlength(temp_os_file));
             dbms_lob.fileclose(temp_os_file);
           end if;
       mail_conn := utl_smtp.open_connection(mailhost, port,timeout);
       utl_smtp.helo(mail_conn, mailhost);
       utl_smtp.mail(mail_conn, p_sender);
       utl_smtp.rcpt(mail_conn, p_recipient);
       utl_smtp.rcpt(mail_conn, p_cc);
       utl_smtp.open_data(mail_conn);
      utl_smtp.write_data(mail_conn,'From'||':'|| p_sender || UTL_TCP.CRLF);
      utl_smtp.write_data(mail_conn,'To'||':'|| p_recipient || UTL_TCP.CRLF);
      utl_smtp.write_data(mail_conn,'CC'||':'|| p_cc || UTL_TCP.CRLF);
      utl_smtp.write_data(mail_conn,'Subject' ||':'|| p_subject || UTL_TCP.CRLF);
    -- utl_smtp.write_data(mail_conn,UTL_TCP.CRLF ||'Body' ||':'|| text || UTL_TCP.CRLF);
      --utl_smtp.write_data(mail_conn,UTL_TCP.CRLF||text || UTL_TCP.CRLF );
        utl_smtp.write_data( mail_conn, 'Content-Disposition: attachment; filename="' || p_filename || '"' || utl_tcp.crlf);
        utl_smtp.write_data( mail_conn, 'Content-Transfer-Encoding: base64' || utl_tcp.crlf );
        utl_smtp.write_data( mail_conn, utl_tcp.crlf );
        v_length := dbms_lob.getlength(p_blob);    
        <<while_loop>>
        while v_offset < v_length loop
          dbms_lob.read( p_blob, v_buffer_size, v_offset, v_raw );
          utl_smtp.write_raw_data( mail_conn, utl_encode.base64_encode(v_raw) );
          utl_smtp.write_data( mail_conn, utl_tcp.crlf );
          v_offset := v_offset + v_buffer_size;
        end loop while_loop;
        utl_smtp.write_data( mail_conn, utl_tcp.crlf );
        utl_smtp.close_data(mail_conn);
        utl_smtp.quit(mail_conn);
      exception
        when utl_smtp.transient_error or utl_smtp.permanent_error then
          utl_smtp.quit(mail_conn);
          raise;
        when others then
        raise;
      end;Please help me out to resolve this issue.
    Thanks in advance.
    Cheers ,
    Shan.
    Edited by: Shan on 13 Jan, 2011 1:08 PM
    Edited by: Shan on 14 Jan, 2011 3:22 PM

    Hi,
    Some Problems i am facing with this procedure. when i try to add CC in this procedure. Its sending the mail for recipent , But the CC person not getting the mail. How to resolve this??
    create or replace
    PROCEDURE sssl_send_mail( p_sender varchar2,
          p_recipient varchar2,
          p_cc varchar2,
          p_subject varchar2,
          p_filename varchar2,
          text varchar2) is 
        /*LOB operation related varriables */
       v_src_loc  BFILE;
       l_buffer   RAW(200);
       l_amount   BINARY_INTEGER := 200;
       l_pos      INTEGER := 1;
       l_blob     BLOB := EMPTY_BLOB;
       l_blob_len INTEGER;
       v_amount   INTEGER;
        /*UTL_SMTP related varriavles. */
        v_connection_handle  UTL_SMTP.CONNECTION;
        v_from_email_address VARCHAR2(200);
        v_to_email_address   VARCHAR2(200) ;
        v_smtp_host          VARCHAR2(10) ;
        v_subject            VARCHAR2(500) ;
        l_message            VARCHAR2(3000);
        /* This send_header procedure is written in the documentation */
        PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
        BEGIN
        --dbms_output.put_line('entering into procedure');
        --dbms_output.put_line(pi_name || ': ' || pi_header);
          UTL_SMTP.WRITE_DATA(v_connection_handle,
                              pi_name || ': ' || pi_header || UTL_TCP.CRLF);
        END;
      BEGIN
       v_src_loc             := BFILENAME('BROKERREPORTS',p_filename);
       v_from_email_address  := p_sender;
       v_to_email_address    := p_recipient;
       v_smtp_host           := 'sbssld1'; --My mail server, replace it with yours.
       v_subject             := p_subject;
       l_message      := 'test';
        /*Preparing the LOB from file for attachment. */
        DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
        DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
        v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
        DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
        l_blob_len := DBMS_LOB.getlength(l_blob);
    /*UTL_SMTP related coding. */
        v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host);
        UTL_SMTP.HELO(v_connection_handle, v_smtp_host);
        UTL_SMTP.MAIL(v_connection_handle, v_from_email_address);
        UTL_SMTP.RCPT(v_connection_handle, v_to_email_address);
        UTL_SMTP.OPEN_DATA(v_connection_handle);
        send_header('From', v_from_email_address || '<'||'>');
        send_header('TO', v_to_email_address || '<'||'>');
        send_header('CC', p_cc        || '<'||'>');
        send_header('Subject', v_subject);
        --MIME header.
       UTL_SMTP.WRITE_DATA(v_connection_handle,
                          'MIME-Version: 1.0' || UTL_TCP.CRLF);
       UTL_SMTP.WRITE_DATA(v_connection_handle,
                            'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            ' boundary= "' || 'SAUBHIK.SECBOUND' || '"' ||
                            UTL_TCP.CRLF);
       UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
        -- Mail Body
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            'Content-Type: text/plain;' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            ' charset=US-ASCII' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle, l_message || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
        -- Mail Attachment
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                           'Content-Type: application/octet-stream' ||
                            UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            ' filename="' || p_filename || '"' || --My filename
                            UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
      /* Writing the BLOL in chunks */
        WHILE l_pos < l_blob_len LOOP
          DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
          UTL_SMTP.write_raw_data(v_connection_handle,
                                  UTL_ENCODE.BASE64_ENCODE(l_buffer));
          UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
          l_buffer := NULL;
          l_pos    := l_pos + l_amount;
        END LOOP;
        UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
        -- Close Email
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            '--' || 'SAUBHIK.SECBOUND' || '--' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
        UTL_SMTP.CLOSE_DATA(v_connection_handle);
        UTL_SMTP.QUIT(v_connection_handle);
        DBMS_LOB.FREETEMPORARY(l_blob);
        DBMS_LOB.FILECLOSE(v_src_loc);
      EXCEPTION
        WHEN OTHERS THEN
          UTL_SMTP.QUIT(v_connection_handle);
          DBMS_LOB.FREETEMPORARY(l_blob);
          DBMS_LOB.FILECLOSE(v_src_loc);
         sssl_internal_error_track(sqlcode,sqlerrm,'SSSL_SEND_MAIL',NULL);
      END;Thanks in Advance.
    Cheers,
    Shan.
    Edited by: Shan on 13 Jan, 2011 12:33 PM
    Edited by: Shan on 13 Jan, 2011 1:05 PM

  • Attached zip.file

    How can I open a zip.file which is attched in a pdf.file?

    Hi h.linnenbrink
    Please see this information mentioned on this link: http://alexoldman.wordpress.com/2011/01/07/how-to-unblock-zip-attachments-in-adobe-pdf-fil es/
    ~Deepak

  • Not able to attach .zip files in mails in latest safari on yosemite

    Safari in yosemite is not taking the .zip / .numbers / .xls files for attachment. Giving empty file error.

    Hi ..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:  Remove All Website Data
    No open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, try troubleshooting extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

Maybe you are looking for