Automator - how I got a file zip "with replacement"?

Automator - how I got a file zip "with replacement"?

I have an action that selects a folder - then creates archive in a chosen folder

Currently - it uses the name of the source folder, and then brings new archives every time as:

My folder.zip

my zip 1 file

My 2 zip. folder

I wish there was only a single zip and the new version would ALWAYS OVERWRITE the old.

Q: How can I get what's going on?

or how to do that with applescript?

Hello

In an Automator workflow, you can use this script in "run AppleScript" action.

----

on track {, parameters} - script for Automator

-create an archive in the parent folder, it uses the name of the folder, it overwrites one archive existing and returns the path of the archive

return fileZipper (item 1 of the entry) - entry is a list and it contains the path of the folder

end of race

on fileZipper (thisItem)

tPath thisItem text value

If tPath ends by ":" and then

the value text delimiters oTid point

the value point text delimiters {"": "}

tPath the text value 1 through the text element - tPath 2

the point text delimiters oTid value

end if

zip (tPath & ".zip") the value as a text file

shell script "/ usr/bin/Ditto - c k - rsrc - keepParent" & (quoted in the form of tPath POSIX path) & "" & quoted form of POSIX zipFile path ".

return the zip as an alias file

end fileZipper

-----

This script create a new archive or overwrite an archive existing with the same name as the folder.

The destination is the parent of the selected folder.

If you want to move this archive to a specific folder, add "move Finder items" action after the action "Run the AppleScript.

Tags: Mac OS & System Software

Similar Questions

  • How can I load file rtf with control of JavaFX?

    Hello
    How can I load file rtf with control of JavaFX?
    I would like to show the contents of the rtf file, I can't find any solution. Do you have any suggestions?

    Thank you

    Published by: imtoocute on August 2, 2012 11:01

    Google revealed this link:
    http://www.codeproject.com/tips/136483/Java-how-to-convert-RTF-into-HTML

    The link is based on an old RTF converter that is built into the jdk and some swing classes - so don't expect a conversion out of it, but it seems by far the best way to perform such a conversion. Depending on your document display requirements of loyalty it might OK for what you are trying to do.

    Other more complex solutions are things like http://www.artofsolving.com/opensource/jodconverter/ jodconvertor that would probably give a higher quality conversion, but is a solution much more heavy weight (based on Open Office converters to perform the actual conversion).

    This kind of thing is also a candidate for service transformation server where you would spend the rtf document in a http post and the conversion would be done on a server, then the converted document is passed back in the http response.

    Once you have the rtf html string, you can use webview.getEngine () .loadContent to display the HTML resulting.

  • How can I use the AppleCare with replacements USA helmet in Israel?

    How can I use an AppleCare with replacements USA headphones for my iphone in Israel 6plus? Am I covered overseas?

    Technically, no. The warranty is valid only in the country where the phone was originally sold. However, that restriction is based on the differences between the models of phones sold in different countries and the availability of substitutes service. You may very well be able to get the headphones replaced here since there is no difference between those who were included in phones AND those that are included with the phones sold in your country. Make an appointment at the genius bar or take it to your local CENTER and see what they can do for you.

  • How to build the file manager with cascade?

    Guy of Halo,

    How can IM new with waterfall, I build a file manager with cascade? is there a lesson or sample

    Thank you

    concerning

    Hello

    Can you clarify a little more what you mean by FileManager? Do you want the opportunity to browse and select files? If so, take a look at this thread. http://supportforums.BlackBerry.com/T5/Cascades-development/using-native-FileBrowse-and-FileSave-dia...

    See you soon

    Swann

  • How to extract a file ZIP (structure records incl.) worldwide RIM of JavaAPI - anyone tried it?

    Hello

    any of you have ever tried to write code, that can extract a ZIP file that contains several files? I ask because in the JavaWorld, it is quite a simple task (using the file zip (or ZipInputStream) and ZipEntry)...

    Now, I wanted to do the same thing in my BB Application - and I realize now that there is no equivalent to ZipEntry... and provided him GZInputStream & ZLibInputStream are 'just' capable of files unique handle [but not including file archives].

    So my question is, is there someone who has always tried to extract a ZIP on the BB with the RIM API? And if so could you help me... or even better is a sort of LIB (jar) that can be used?

    TIA

    Matthias

    just for the records (if someone else is looking for it) - there is a GNU zipME lib:

    http://sourceforge.NET/projects/zipme/

  • How to let *.amd file work with active static selector

    Well, I try to use different background for different visualstyle pattern. but I don't know how to make it work.

    my bottom paint is:

    ImagePaintDefinition {
        id: backgroundPaint
        imageSource: "asset:///Background.amd"
        repeatPattern: RepeatPattern.XY
    }
    

    Background.AMD is:

    #RimCascadesAssetMetaData version=1.0
    source: "Background.png"
    repeatable: true
    

    If I use the structure of file like this:

    -VisualStyle.bright

    | - Background.png

    -VisualStyle.dark

    | - Background.png

    -Background.amd

    the error message is:

    Image not found: "/ apps/***/native/assets//Background.png".

    or if I use the structure of file like this:

    -VisualStyle.bright

    | - Background.png

    | - Background.amd

    -VisualStyle.dark

    | - Background.png

    | - Background.amd

    the error message is:

    "AssetMetaDataParser: file not found: /apps/***/native/assets//Background.amd".

    I'm so confused. could someone help me with this problem? Thank you very much!

    Thank you very much for your advice!

    It looks like to caused by my Dev Alpha A, which is always the version 10.0.0 rather than the new version 10.0.1. Because the second structure works well on the Q10 Simulator which has version 10.0.1.

    Now, I try to use the following structure. He has passed the test on my Dev Alpha A, and I'm about to test it on the simulator of Q10.

    | - Background.png
    | - Background.amd

    -VisualStyle.bright
    | - Background.png
    | - Background.amd
    -VisualStyle.dark
    | - Background.png
    | - Background.amd

  • How to load the file tabs with field-delimited a comma in an external table

    I am trying to create an external table in oracle 11 g r2. the script is as below. It fails if the field contains commas.

    for example, the following data will not be loaded.

    ERT 123, poipoipoi, yutio 567

    Please suggest how to solve this problem. Thank you!

    CREATE TABLE external_interaction
    (
    TAX_ID NUMBER (8).
    pubmed_id_list varchar2 (36),
    interaction_id_type varchar2 (36)
    )
    EXTERNAL ORGANIZATION
    (TYPE ORACLE_LOADER
    THE DEFAULT DIRECTORY ET_NCBI_DIR
    ACCESS SETTINGS
    (records delimited by 0 x '0A'
    jump 1
    BADFILE et_ncbi_log_dir: 'interactions.bad'
    Et_ncbi_log_dir LOG file: 'interactions.log'
    fields terminated by '\t '.
    missing field values are null
    REJECT ROWS WITH ALL FIELDS ARE NULL
    (
    TAX_ID,

    pubmed_id_list,
    interaction_id_type
    )
    )
    LOCATION (ET_NCBI_DIR: "interactions")
    )
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING;

    Thanks for the reply.

    Should I use

    collumn_name tank (2000) in the table creation script because it is larger than the default char (255)

  • How to open a file .ica with Windows 7?

    My mother needs Citrix software for nursing and we cannot convert the .ica file to use.  We have editing Home premium to Windows 7.  Is it possible to do this without having to pay for a file extension?

    Hello

    File of the Independent Computing Architecture (ICA) used by the Citrix application servers; contains configuration information to connect to different servers; can be connected to a published application or a server's desktop environment.

    ICA files can be created with the ICA file creator program or a basic text editor.

    You can double-click an ICA file to open the virtual application remote or referenced by the file desktop environment. Note that you must have a Citrix client installed for the file to open correctly.

  • How to remove a file/folder with force?

    Friends, including at - it a command to remove with force a file or a folder in Windows, as what we have in Unix, i.e. "rm - rf"?

    Thanks in advance.

    Best regards, Kumar

    You can start the command prompt and do a Delete "folder name".  If the folder is marked read only, system, or hidden, you may need to use the ATTRIB command to remove these attributes.  Question the Attrib /? command for syntax.

    To access the command prompt, press F8 all the seconds until you get the menu and select Mode safe mode with command prompt.

    Good luck.

  • How to decompress a file service with Adobe Reader?

    I said I need Adobe Reader to decompress a file clean, but I don't see anything about this anywhere on the Adobe site. Can anyone help?

    Hi chrisjeant84285729,

    You cannot decompress a file by using the Reader app. Adobe Reader is a PDF reader not a zipped files Extractor.

    Use Winrar to extract the files & folders.

    Kind regards
    Nicos

  • How to publish HTML files exported with Go Daddy file transfer Panel?

    I am a beginner with Adobe Muse, so I have no experience with it whatsoever.

    All started with Muse. No experience at all with it.

    Fusion of objects Net (NOF) used so far. With the NOF software, I had to publish the HTML files in a "flat" structure, which exports all files in a single foldrer. No other records inside. Then I download all the files in the Panel of Go Daddy File Transfer, without any problem. But in the Muse, the files are exported in a folder with many files inside. Thus, when I download the exported Muse html files in the same way, the exported site is not displayed correctly. It says "files are missing. It's as if she's not read all the files I downloaded. It seems to only read one level. All other files in the folders

    When I had similar problems with NOF like this before, I had to publish the files in "flat site structure. Then the problem is solved. But in Adobe Muse, there is no way to publish the exported files in a "flat" structure. So what I am doing wrong? Help, please. Thank you

    Use the built in FTP in Muse.

    In the upper right corner, click on 'Publish' and select 'FTP host'

    You will then get a new dialog box where you enter your GoDaddy FTP account information.

    And then it's as simple as hitting the publish button when you want to update your site. You don't need to make it through the Panel of GoDaddy file transfer. This is the way strong and open to too many potential errors.

  • How change a PDF file created with Acrobat Pro XI after signatures have been applied (as I can in 7, 8.0

    I have a major problem that I need to resolve before we can buy Acrobat Pro XI:


    Currently, with Acrobat Pro 8.1, after all signatories sign a document, we add an effective Date (we add it after they sign since we do not know when the last signature is acquired and we cannot have an effective Date that is prior to the date of the last signatory, moreover, it would be effective before they signed, which is not possible). I am also authorized the latitude (as described in our Documentation control procedure) to make spelling corrections, hyperlink updates and minor formatting changes (using the typewriter and, also, by replacing a page which is NOT signed so page change shows how to repaginate the document or the amendment of a hyperlink that has changed).


    In all versions previous Acrobat we used (7 Pro, Pro 8 and 8.1 Pro), this was easily possible and any changes would be listed on the Signatures tab, which is exactly what we want, is traceability.


    I now use the trial version of Acrobat Pro XI but get the message "this document is signed and cannot be displayed." If I bring the same PDF created from Word 2003 & 2013 using Acrobat Pro XI in Pro 8.1, however, I CAN add the date, use the typewriter and replace unsigned pages, register and leave without compensation or lose any signature.


    My question is this: How can I do this in Acrobat Pro XI, as Pro XI (in the Signature pane) lists also changes made to the document, when it was edited using Pro 8.1? (It's OK that the changes made to the PDF and then mark signatures as "invalid", as the reason why they were invalidated is also listed in the pane of the Signature, for example "form field added," which is usually the Date of effect applied).


    Thanks for any help!

    Thank you, Zildjian, and isakten. You me headed in the right direction. What I ended up doing was just a form text (for entry into force) field, then the required signature fields. After everyone has signed, I can the Effective Date of entry, then save the document and I don't have to sign myself or apply any type of certification. I just have to remember to put the text before form field I have forward the documents. It's the right answer, at least for my situation.

    Thanks again!

  • How to share a file private with a member of the team also on CC?

    We have a few designers who are part of a CC for the sale of the teams.

    Is it possible to share files with only these individuals?

    We do not want to make public folders.

    Currently the links sharing files are public. Private file sharing is not available.

  • How to open a file did with a few layers named in Japanese with a CS5(English Ver) AI

    I can't open some files have which may contain a few layers named in Japanese. I use AI CS5 (Eng Ver) and how can I open them?

    THX!

    At worst you should obtain characters corrupted by the following as when you do not have specific policies on items of text, but if not, you should be able to open the file. The only thing that could prevent this otehrwise, it's something systemic, you need to maybe install support for Asian languages (especially if you are still running Windows XP) or even change the language of the user interface.

    Mylenium

  • How to get the files associated with a server module

    Hello

    I am facing a problem. I must extends controller, but there a lot of imports coming from the same module but the different folders. and all the files in the .class. files can you tell me where I can download all the files from the server on my local server system and process they are converted to java files. Can I also have the xml on my local system files.

    Please help me on this. are there any tools that can do this? Please share links.

    Thanks in advance.

    Kind regards
    Prakash

    Prakash

    It's better using the tools (for example (WINFTP or WINSCP) you copy the entire structure of package in your local machine. To decompling all files in an appointment that you can make use of JAD which is easily downloadable on the net.

    http://www.varaneckas.com/JAD

    I hope that helps!

    Thank you
    AJ

Maybe you are looking for

  • Why my favorites so quickly disappear when I try to find one I want to use

    QuestionWhy my favorites so quickly disappear when I try to find one I want to use

  • HP Touchsmart 320-1030 touchscreen does not work after update

    Hello, I bought a hp touchsmart 320-1030 pre loaded with windows 8 and once I took the free update Windows 8.1 my audio driver and pilot of the touchscreen went. I managed to get a driver of his work, but I can't understand this touch screen problem.

  • File error!

    Hello I am trying to program my NXT module using the LabVIEW for the NXT Toolkit. I copied exactly the table of waveform of volume to get started with the LabVIEW Toolkit for LEGO® MINDSTORMS® NXT: ftp://ftp.ni.com/evaluation/mindstorms/LabVIEW_Toolk

  • Multisim simulation of co error

    Hello When you perform a simulation in Labview (using a model of Multisim) in the Loop Simulation & control, sometimes a small window pops up with the error: Multisim is closing due to the error... (or something like that, I don't use multisim in Eng

  • Problem with HP Connection Manager

    Hello I have HP ProBook s 4330 with Windows 7 operating system, and today when I opened the connection manager showed me the message: a fatal error has occurred. I don't know what to do and I don't want to make a mistake, so I hope you can help me.