In need of an applescript solution

Problem 1: I am in need of an Applescript or Automator workflow that can select multiple files and will zip each of the files separately into separate zip files. So I can select multiple files but each file is zipped into a separate archive.
BUT I also need a single file to be copied to all archives created.
For example: If I select movie1.mp4, movie2.mp4, movie3.mp4 I need them to be all archived individually with a copy of an existing text file.
If that is not possible directly then I would just need the following problem to be solved:
Problem 2: I would like to select a batch of files and have them all placed into their own folder. So, if I select 74 movie files each separate file will be individually placed in their own newly created individual folders that have the same name as the original file.

Use a script such as:
tell application "Finder"
repeat with this_file in (get files of window 1)
make new folder at window 1 with properties {name:items 1 thru -5 of (get name of this_file) as string}
move this_file to the result
end repeat
end tell
when the 74 movies and no other files are in the frontmost Finder window. If the files aren't showing their extension, replace -5 with -1.
(43628)

Similar Messages

  • Hello, I have a Macbook Pro 2011, and put an SSD on it. Yesterday i upgrade to Yosemite and sadly mi trim is not supported .... I really need (and demand) a solution to this, because like i see in the manual of the mac, Iam allowed to install a disk.

    Hello, I have a Macbook Pro 2011, and put an SSD on it. Yesterday i upgrade to Yosemite and sadly mi trim is not supported .... I really need (and demand) a solution to this, because like i see in the manual of the mac, Iam allowed to install a disk.

    Try a Safe Boot to clear the dyld_shared_cache (dynamic loader cache)
    SafeBoot  http://support.apple.com/kb/HT1564
    Safe Boot, which automatically rebuilds this cache (among other things).

  • Need RTF PDF API solution and not Online Solution

    Greetings,
    I need to build a solution which runs on a Win2008 R2 64 bit OS.
    I have literally millions of documents in my database as RichText data that I need to create PDF's for.
    Please advise.
    Thanks
    John

    We do support IE 7/8/9 and 10, this should be working in all...
    Are the computers all on the same network?
    On the machines where you cannot save the response as PDF can you "save/export" anything else?  Can you try, from the File menu "Export Responses" and see if you can export an Excel file of the responses?  Can you try an alternative web browser (Firefox or Chrome) on the machine/s that are not working?
    When it does not work you are seeing a progress bar that never completes?  When you cancel that and try again you have the same result?
    Thanks,
    Josh

  • We need to implement EP Solution for Supplier Portal

    Hello All,
         I'm working on BSP's and Portal since 1 Year.
    The Portal Implementation is already done before I started working on it.
    Now my scenario is as folows :
    We need to implement EP Solution for Supplier Portal .
    For this we want to know what are all the activities involved.
    Can anyone throw some light on it ?
    Regards,
    Deepu.K

    We have to make setting for displaying all the roles defined for supplier portal to reflect in the EP.Portal is integrated with Webclient of CRM so make sure all changes done in the webclient are reflected in the Portal thing.

  • Packagemaker: need to run applescript from postflight script

    Does anybody makes packages using Packagemaker? I need to run applescript from postflight shell script. Generally, when we need to run applescript or any application from shell script we write:
    #!/bin/sh
    open /Path/to/applscrpt.app
    But what to do if all scripts (shell, app's) placed in MyPackage.pkg/Contents/Resources? What path I need to specify? This way:
    #!/bin/sh
    open ./Contents/Resources/applscrpt.app
    doesn't work...

    The $1 argument that gets passed to your postflight script by the Installer should contain the full path to the package that's currently being installed. So something like this should work...
    #!/bin/sh
    open "$1/Contents/Resources/applscrpt.app"
    Here is some additional info about args and environment variables available to your scripts.
    Steve

  • What components do we need to implement NAP solution ?

    We use win2003R2 and win2008R2 servers , win7 laptop,win2008 DHCP, cisco 802.11x switch,Access Point, cisco acs radius server, windows CA.
    I am planing to implement NAP solution.
    What components do we need to implement NAP solution ?
    I think it needs NAP server role and third-party antivirus Win NAP compatible software.

    Hi,
    As we know, there are five NAP enforcement methods, NAP Enforcement for IPSec Communications, NAP  Enforcement for 802.1x, NAP Enforcement for DHCP, NAP Enforcement for Terminal Services Gateway, NAP Enforcement for VPN.
    Due to you have many devices in your environment, which is the primary means that you want to deploy NAP? In my point of view, you could configure NAP enforcement for DHCP or for 802.1x Wireless or for 802.1x Wired.
    To deploy DHCP NAP, we need a DC, a NPS server as RADIUS server, a DHCP server as a RADIUS clients and a DHCP client.
    To deploy NAP Enforcement for 802.1x Wireless, we need a DC, a CA, a NPS server as RADIUS server, a 802.1x wireless access point as a RADIUS client and a 802.1x wireless client.
    To deploy NAP Enforcement for 802.1x Wired, we need a DC, a CA, a NPS server as RADIUS server, a 802.1x authenticating switch as a RADIUS client and a 802.1x wired client.
    You could choose one of these NAP enforcement based on your environment. More details about NAP configuration, please refer to links below,
    Checklist: Configure NAP Enforcement for DHCP
    http://technet.microsoft.com/en-us/library/cc772356(v=ws.10).aspx
    Checklist: Configure NAP Enforcement for 802.1X Wireless
    http://technet.microsoft.com/en-us/library/cc753793(v=ws.10).aspx
    Checklist: Configure NAP Enforcement for 802.1X Wired
    http://technet.microsoft.com/en-us/library/cc730926(v=WS.10).aspx
    Best Regards,
    Tina

  • I need help with AppleScript for changing the font on numerous PowerCADD files

    I am currently trying to write an AppleScript, but I really have no idea how one is written.  I have looked up many tutorials, but to no avail.
    What I'm trying to so is write a script that will take all my selected PowerCADD files, open them, change the font to Helvetica, then save the file.  I have over a thousand files to do this to.  So, you can see my need of an AppleScript to get this task completed.
    If anyone out there knows how I would write this script, please submit it here.
    Thank you so much for your time and help.

    If anyone could help, that would be awesome  =)

  • Need help with applescript and Xcode 4.3.2

    I'm trying to write my first application that will involve a GUI. I can code applescript using script editor with a bit of effort, but I'm want to have users input more than one piece of information in the pop up. So, I download xcode, create my first applescript cocoa project go to MainMenu.xib and add a bunch of labels, text fields and buttons. Looks fairly nice... Go to start it and... nothing (well the window pops up, but it doesn't do anything). Unfortunately, I haven't figured out how to link the window to the applescript... So, how do I...
    * Have the applescript prepopulate data in the text fields and pulldowns
    * Once the user changes the data in the fields tell the applescript
    * Tell the window to close and pass the control back to the applescript once either the cancel or submit button is pressed.
    More detailed...
    * What's an outlet and how do I use it here? Which of the 18 outlet(s) do i use for this?
    * What's a property (referenced on one of the web pages I saw around applescript and cocoa) and do I need them here?
    Looking at the documentation with xcode, there isn't a lot about xcode and applescipt. Looking at the web, the top links are a few years old. So, links to good relevent documentation would be very nice as well as direct answers to the questions
    Thanks,
    Scott

    I'm not sure why you are closing it, but the NSApplication class is what keeps track of the windows.  If you don't want to connect the window to an outlet from the interface editor, you can use something like
    set theWindow to current application's NSApplication's sharedApplication's mainWindow()
    ...and from there you can use whatever NSWindow methods, for example
    theWindow's performClose_(me)

  • Help needed - Planning Server 2012 solution, DC/Exchange/SQL/RDP host/Remote apps etc

    Hi All,
    I have a client needing me to provide a Windows server based solution for their business. I have limited experience with Server 2012, although I have worked with 2008R2 and SBS2011, I am needing some guidance with this 2012 project.
    The client has about 8-10 local users who work at one office with an NBN connection, and 2 other locations that have 3-5 users at each location. I am needing to provide them with a server based solution to manage their data, remote access and also their
    email. They are also likely to expand to another physical office soon.
    I need to provide them with a DC controller, Exchange server and possibly an SQL server in the future. They currently use an Act database, but I have been told that once the database in ACT grows to 4G, a dedicated database is required?
    I am currently thinking of having one physical server and virtualising the additional servers on this platform, however I come from a UNIX background and have not virtualised using Hyper V or ESXi before. I have read a little regarding the CLI and GUI Hyper
    V options, but I really need advice on what will suit my needs best from someone that has done it.
    I am thinking I maybe should recommend one physical machine with Server 2012 Std which, from what I understand, will allow me to install the host hyper V host on the physical machine and then I could possibly install an instance of Server 2012 as
    the DC, Exchange and SQL server on one VM licence, however I have read it is not preferred to have the exchange server on the same VM as the DC but have read that limiting the memory usage of Exchange can negate these issues?
    I will also need to have a terminal server/RDP session host in there as well which I could maybe use the 2nd VM licence for.
    I suppose my question is, considering that I need to end up with a DC, Exchange server, terminal server/RDP session host and possibly a SQL server in the future, am I better off virtualising and running these on a Server 2012 Std licence, that allows a hyper
    v host + 2xVM's or should I be splitting these roles up on different physical machines, keeping in mind costs need to be kept to a minimum.
    Also I need to consider the Microsoft Office side of things. Is it more financially viable to use office licences and use remote apps from the terminal server, or just purchase Office H&B for the workstations/laptops and have their outlook connected
    directly to the exchange server?
    I am concerned from the performance viewpoint that if I run the DC/Exchange and SQL from one VM, then the TS/RDP Host from the other VM licence it may be too much for the DC/Exchange/SQL VM to handle.
    I have used SBS 2011 in a few locations with Exchange and the SQL and DC roles installed on HP DL and ML gen 8 servers, and although they run a little slow on the console, they seem to serve the network clients fine.
    If do end up running on one physical machine the Hyper V host, one VM as a DC, Exchange and SQL server, and the other VM licence as a RDP session host, what sort of spec'd machine would be recommended to be able to do this, keeping in mind
    I usually lean towards HP servers.
    Anyhow, thx in advance and any comments or suggestions will certainly be appreciated.
    Mkm

    Hello,
    sorry but in your case without the knowledge of all major requirements i would suggest that you or your client contact an expert and not work with the forums to get this amount of information and setup requirements.
    Exchange on DCs is NOT recommended, even not from Microsoft. Also it is highly recommended to run at least 2 DC/DNS/GC per domain for failover and redundancy, of course NOT on the same physical machine.
    RDS servers should also run on dedicated machines and not be used for anything else.
    SQL should also run on a separate server.
    You cannot compare SBS version with regular server versions, the concept behind is different.
    With that small amount of users you should consider using an Office365 solution where you could use a plan that fits your needs and have just computers for your client employees.
    But as stated above therefore you should find an experienced consultant.
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Need Pre_requisites to install Solution Manager in Solaries 9 and Oracle 10

    Hi Administrators,
    In my project, we have planned to implement Solution Manager 7.0 in O/S Solaries 9 and Database Oracle 10.2.
    We are implementing this Solution Manager in already existing SAP server.
    We have server like TSAPNGN, In this server already our QAS ECC 5.0 and QAS BW 3.5 are exist and running in this server.
    I need information like, What is the pre_requisites to install SAP application, where already another SAP exist in Server.
    Appreciate ur help.
    Thanks & Regards,
    Jagan.

    Hello
    There is no difference whether you are installing the Solution Manager on a separate server or an existing server already containing the DEV system. you will get some idea from these Notes
    21960 Several instances/systems on one UNIX computer
    28392 Two R/3 Systems on one Windows NT Server
    322653 DB6: Two or several systems on a host
    I think, you should go for Central System installtion for the Solman, with it's own database.
    and what do you mean by 'standalone solman' here ?
    Just go 'installation and upgrades' -> My application components -> SAP Solution Manager -> Solman 7.0 or EHp1 -> Installation and upgrades
    For installation guide
    installation and upgrade guiedes -> SAP components -> SAP Solution manager -> Select solman version

  • I need a one-lens solution for my photo needs on high speed Corvette Races. Will 35-350L do?

    I need one lens to carry on my 1D during long road rallies with the Corvette Race club.  Would the 35-350L be a good canditate?
    Solved!
    Go to Solution.

    You have a 1D ?     Or do you have a later 1 D seires camera?  
     I have used and still use a 1D.  It would not be my first choice, or 2nd, or 3rd, for motorsports shooting with whatever lens.
     At 4MP you are going to be really handicaped in any sort of enlargements.
    The 1D is a fantastic camera and at one time the best camera in the world with a, at the time, insane price of around 8 grand.
    If you do indeed have a 1D, I would search for a later 1 series and the best buy right now is a 1D Mk III.
    Than the addition of the EF 35-350mm f3.5-5.6, or better yet the EF 28-350mm f3.5-5.6 should work well.
    With a lot of practice as suggested above.
    EOS 1Ds Mk III, EOS 1D Mk IV EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 70-200mm f2.8 L IS II, Sigma 120-300mm f2.8 EX APO
    Photoshop CS6, ACR 8.7, Lightroom 5.7

  • Need help modifying Applescript to copy "Spotlight Comments" into file

    Hello all,
    I have a very large batch of images of Leonardo da Vinci's notebooks. I used the "Spotlight Comments" field of each file to save information about the notebook page depicted in each image:
    Well, I had to modify each image in Photoshop and when I saved the files, Photoshop of course didn't retain the Spotlight Comments. Now, before I modified the images, I duplicated the directory, so I have a copy of all of the images that retain their Spotlight Comments field with each image's information. What I want to do is copy the text from the Spotlight Comments field of the original files and either paste this text into the Spotlight Comments field of the modified files (which are in a different directory, but retain the same filenames as the originals), or at least copy the text from the Spotlight Comments field of the original files and paste each block of text into a txt file with a couple of blank lines in between each entry, so that I can manually copy/paste the citations into the modified image's Spotlight Comments fields.
    I successfully used this Applescript:  https://discussions.apple.com/message/6741062#6741062
    to get the Spotlight Comments from the original files, but it displays them one by one in pop-up dialog boxes and because I have almost a thousand images it is extraordinarily wearisome to copy the text from each pop-up, paste it into a text file, make two blank lines, click "OK" in the pop-up to get the next one...
    Can anyone suggest how I can modify the code I have to tell the Finder to copy the contents of each pop-up and paste them into a single text file with a couple of blank lines between each entry?
    I have the barest, most rudimentary knowledge of Applescript, which is why I'm asking if one of the wizards here can help me modify or write an Applescript to do what I need to do.
    Thank you so much!
    BTW, here is the code from the aforementioned discussion that gets the Spotlight Comments from files. I made into an Applescript application using Automator:
    tell application "Finder"
    repeat with tItem in input
    set (comment of tItem) to (text returned) of (display dialog "Spotlight Comment: " default answer (comment of tItem as string))
    end repeat
    end tell

    Hi,
    Evan Izer wrote:
    Now, before I modified the images, I duplicated the directory, so I have a copy of all of the images that retain their Spotlight Comments field with each image's information. What I want to do is copy the text from the Spotlight Comments field of the original files and either paste this text into the Spotlight Comments field of the modified files (which are in a different directory, but retain the same filenames as the originals)
    This script does exactly that:
    set sFolder to (choose folder "Select folder wich contains original images.") as string
    set dFolder to choose folder "Select folder wich contains modified images."
    tell application "Finder"
          repeat with tItem in (get document files of dFolder)
                set origFile to sFolder & (get name of tItem)
                if file origFile exists then
                      set origComment to comment of file origFile
                      set comment of tItem to origComment
                end if
          end repeat
    end tell

  • Entered Wrong Email Address  : Help Needed - Probably a Simple Solution But Driving Us Crazy

    Recently, when signing into a website I have used successfully many times - I accidentally typed in the last few letters of my email address wrongly ( email address and password are required to log on to the site) Now I can't access the site at all because I enter my correct email address when asked,  but as soon as I move down to enter my password...the email address reverts back to the one I typed in wrongly and of course the site dosent recognize me. I have turned off and on my auto fill thing, cleared my cookies, reset Safari, tried all the simple things I know but they haven't worked. I suspect the solution will be an easy one for those that know more than I do ( which isn't alot!) and would be grateful for some quick advice!

    You will need to contact the website.  Have you checked to see if the site has customer or tech support? 

  • UseUrBrain-I Need creative efficiency minded solutions:streamlined workflow

    Hello All!
    This is your chance to really test your creative solutions skills. I am looking for a suggestions to streamline some of the various workflow related issues that seem to be fogged by my ADHD mindset and I need your help to reach clarity!
    I am looking for a few "think smarter not harder" approaches to some of the relatively simple reoccurring and tedious tasks that are included in my day to day.
    Each day I create some sort of tangible note relating to various pertinent things from a wide variety of subjects-all over my life (post it notes, paper, emails to myself, various documents, etc etc. Each entry of data seems to carry at least one entry towards one of the many greater external lists and taxonomies that I create both tangibly and in my mind.
    Lists such as:
    +Vocabulary Words-+
    +Terms or Phrases-+
    +People of Note-+
    +Places of Note-+
    +Things of Note-+
    +Questions I have-+
    Priorities-
    +Action Items-+
    ...and so on...
    **QUESTION/TASK I am requesting suggestions towards a solution with:**
    +I want to create a dynamic list of some kind to which I may continually add content posts/entries to easily as well as subscribe to (I am thinking something that can be published as RSS). Also something that can be searched easily later.+
    +I am particularly interested in the ability to tag each post/entry with keywords or subjects which will filter relevant content to a particular subject later.+
    +I need an automated way for some of these lists to fetch their own data as well-particularly WORD and PHRASE lists - I need the dictionary/thesaurus entries for the posted entries to automatically retrieved and entered next to the words themselves.+
    Sooooooo- HELP, HELP me come up with a solution that make sense for this daunting task - does it include a third party application?, a website? (of my own or existing), a text file?, an iWork solution?, an automator solution?, an apple script?, a terminal command?
    I am savvy enough to follow instructions if they are given - just not enough to figure out what steps make the most sense.
    Please let me know if more information is needed in order to help me.
    THANK YOU in advance!

    1) In my experience, that is pretty typical behavior when the Send-to-Compressor workflow is followed.
    2) If you can find the link about Proxy, please post it. In fact, FCP sends the high quality file to Compressor.
    That said, I have to add that I've never been a big fan of the Send… workflow and have found exporting a self-contained Pro Res master for repurposing in other formats is preferable.
    3) Since having a back-up of your original media is paramount, I would say your way of accomplishing that is fine. Many people are not comfortable unless they have two backups.
    Russ

  • Hi i need help with applescript to stop downloads when vpn fails

    I am an apple script novice, I would like to be able to have a script run all the time to detect vpn failures and close transmission when this happens:
    so far:
    on idle
              do shell script "ifconfig -lu"
              if "ifconfig -lu" contains "tun0" then
              else if "ifconfig -lu" does not contain "tun0" then
                        tell application "System Events"
                                  tell application "Transmission"
                                            quit
                                  end tell
                        end tell
              end if
    end idle
    it closes transmission and nothing else.  tun0 is my vpn interface and seemed the most fireproof way of understanding the state of the vpn connect.  When VPN is down tun0 doesnt exist.  Please help.
    many thanks

    There are several things wrong with your script.
    First, the glaring one:
              if "ifconfig -lu" contains "tun0" then
    This will never, ever, ever be true. What you're asking AppleScript is whether the string "ifconfig -lu" contains the string "tun0". Never going to happen. Not even close.
    What you really mean is whether the output of the shell command 'ifconfig -lu' contains 'tun0'. The easiest way to do that is to capture the output of the do shell script command in a variable and then test the variable, not the literal string:
    set activeInterfaces to do shell script "ifconfig -lu"
    if activeInterfaces does not contain "tun0" then
      -- stuff goes here
    end if
    Now AppleScript runs the shell script and puts the result in activeInterfaces which you then test to see if it contains (or, in this case, does not contain) the string you're looking for.
    Note that I've also reworked your if statement.. there's no need to have an empty 'if' clause followed by an else if that checks the opposite... by definition if the first one fails the second one will be true.
    Also note that there's no need to tell System Events to tell another application to quit - you can just do that directly.
    Next up is that you don't exit your own script after you quit Transmission. So now you have the scenario where the VPN drops, your script detects it and tells transmission to quit. However, your script keeps running so it then rechecks whether the tunnel is up... since it presumably isn't, it then relaunches Transmission in order to tell it to quit again. Then it rechecks whether the tunnel is up, if it isn't, it relaunches Transmission to tell it to quit... then it rechecks... you get the idea.
    Ideally you should tell your own script to quit after Transmission has exited so that you're not stuck in this loop.
    Lastly you don't include a return value in your idle handler. This means that your idle handler will run every 30 seconds. That might be good enough, or you might want to check more or less frequently. Just return a value indicating the number of seconds to pause between iterations -  realise that the more frequently you check, of course, the more load you put on your system
    Adding that all up you'll end up with something like:
    on idle
              set activeInterfaces to do shell script "ifconfig -lu"
              if activeInterfaces does not contain "tun0" then
                        tell application "Transmission" to quit
                        tell me to quit
              end if
              return 30 -- 30 is default value, but it doesn't hurt to include it here
    end idle

Maybe you are looking for