How do I use an Excel list to relocate files on my computer? Scripting?

I have a very large file at work with hundreds of rows of data at a time.
Every week or so we need to find a certain amount of those SKU's and find the corresponding file to send out to our buyers.
Excel Data:
A438-9
A2974-87
D4049-90
A1799-41
P1231-3947
Now scattered throughout the main computer in different folders, are the photo files of every product, titled by product code:
A438-9.tif    
A2974-87.jpg    
D4049-90.jpg
A1799-41.png
P1231-3947.tif
So now, let's say a buyer wants to see what those 5 products look like.
What we're doing now is copying the values in each independent cell, opening spotlight on the finder, pasting the value, then the corresponding file comes up
then we drag it into a folder thats on the desktop. We do this for all 5 products, copy, paste, drag, drop, repeat. We then send it to the customer.
What is the issue is that there aren't 5 products, there's 150 or so each week. Takes up a good hour to do this and there has to be an easier way.
I tried using some of the scripts I looked up online but it kept saying 'compile error'
Please help!!

This will take all names listed in Col A, search for that name (in the Home Directory) with a jpg or tif or png extension, and if found, copy to the Desktop (edit as needed):
tell application "Microsoft Excel"
          tell active sheet
                    tell used range
                              set rc to count of rows
                    end tell
                    set theList to get value of range ("A1:A" & rc) as list
                    repeat with theItem in theList
                              do shell script "find ~  \\( -iname " & quoted form of (theItem & ".jpg" as string) & " -o -iname " & quoted form of (theItem & ".tif" as string) & " -o -iname " & quoted form of (theItem & ".png" as string) & " \\)  -exec cp {} ~/Desktop/ \\; "
                    end repeat
          end tell
end tell
(This is similiar to the post in: https://discussions.apple.com/message/23682857)

Similar Messages

  • HT1338 Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    If you look at the User Tips tab, you will find a write up on just this subject:
    https://discussions.apple.com/docs/DOC-4053
    The subject of buying/selling a Mac is quite complicated.  Here is a guide to the steps involved. It is from the Seller's point of view, but easily read the other way too:
    SELLING A MAC A
    Internet Recovery, and Transferability of OS & iLife Apps
    Selling an Old Mac:
    • When selling an old Mac, the only OS that is legally transferable is the one that came preinstalled when the Mac was new. Selling a Mac with an upgraded OS isn't doing the new owner any favors. Attempting to do so will only result in headaches since the upgraded OS can't be registered by the new owner. If a clean install becomes necessary, they won't be able to do so and will be forced to install the original OS via Internet Recovery. Best to simply erase the drive and revert back to the original OS prior to selling any Mac.
    • Additionally, upgrading the OS on a Mac you intend to sell means that you are leaving personally identifiable information on the Mac since the only way to upgrade the OS involves using your own AppleID to download the upgrade from the App Store. So there will be traces of your info and user account left behind. Again, best to erase the drive and revert to the original OS via Internet Recovery.
    Internet Recovery:
    • In the event that the OS has been upgraded to a newer version (i.e. Lion to Mountain Lion), Internet Recovery will offer the version of the OS that originally came with the Mac. So while booting to the Recovery Disk will show Mountain Lion as available for reinstall since that is the current version running, Internet Recovery, on the other hand, will only show Lion available since that was the OS shipped with that particular Mac.
    • Though the Mac came with a particular version of Mac OS X, it appears that, when Internet Recovery is invoked, the most recent update of that version may be applied. (i.e. if the Mac originally came with 10.7.3, Internet Recovery may install a more recent update like 10.7.5)
    iLife Apps:
    • When the App Store is launched for the first time it will report that the iLife apps are available for the user to Accept under the Purchases section. The user will be required to enter their AppleID during the Acceptance process. From that point on the iLife apps will be tied to the AppleID used to Accept them. The user will be allowed to download the apps to other Macs they own if they wish using the same AppleID used to Accept them.
    • Once Accepted on the new Mac, the iLife apps can not be transferred to any future owner when the Mac is sold. Attempting to use an AppleID after the apps have already been accepted using a different AppleID will result in the App Store reporting "These apps were already assigned to another Apple ID".
    • It appears, however, that the iLife Apps do not automatically go to the first owner of the Mac. It's quite possible that the original owner, either by choice or neglect, never Accepted the iLife apps in the App Store. As a result, a future owner of the Mac may be able to successfully Accept the apps and retain them for themselves using their own AppleID. Bottom Line: Whoever Accepts the iLife apps first gets to keep them.
    SELLING A MAC B
    Follow these instructions step by step to prepare a Mac for sale:
    Step One - Back up your data:
    A. If you have any Virtual PCs shut them down. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
    B. Clone to an external drive using using Carbon Copy Cloner.
    1. Open Carbon Copy Cloner.
    2. Select the Source volume from the Select a source drop down menu on the left side.
    3. Select the Destination volume from the Select a destination drop down menu on the right
    side.
    4. Click on the Clone button. If you are prompted about creating a clone of the Recovery HD be
    sure to opt for that.
    Destination means a freshly erased external backup drive. Source means the internal
    startup drive. 
    Step Two - Prepare the machine for the new buyer:
    1. De-authorize the computer in iTunes! De-authorize both iTunes and Audible accounts.
    2, Remove any Open Firmware passwords or Firmware passwords.
    3. Turn the brightness full up and volume nearly so.
    4. Turn off File Vault, if enabled.
    5. Disable iCloud, if enabled: See.What to do with iCloud before selling your computer
    Step Three - Install a fresh OS:
    A. Snow Leopard and earlier versions of OS X
    1. Insert the original OS X install CD/DVD that came with your computer.
    2. Restart the computer while holding down the C key to boot from the CD/DVD.
    3. Select Disk Utility from the Utilities menu; repartition and reformat the internal hard drive.
    Optionally, click on the Security button and set the Zero Data option to one-pass.
    4. Install OS X.
    5. Upon completion DO NOT restart the computer.
    6. Shutdown the computer.
    B. Lion and Mountain Lion (if pre-installed on the computer at purchase*)
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because
    it is three times faster than wireless.
    1. Restart the computer while holding down the COMMAND and R keys until the Mac OS X
    Utilities window appears.
    2. Select Disk Utility from the Mac OS X Utilities window and click on the Continue button. 
    3. After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click
    on the Erase tab in the DU main window.
    4. Set the format type to Mac OS Extended (Journaled.) Optionally, click on the Security button
    and set the Zero Data option to one-pass.
    5. Click on the Erase button and wait until the process has completed.
    6. Quit DU and return to the Mac OS X Utilities window.
    7. Select Reinstall Lion/Mountain Lion and click on the Install button.
    8. Upon completion shutdown the computer.
    *If your computer came with Lion or Mountain Lion pre-installed then you are entitled to transfer your license once. If you purchased Lion or Mountain Lion from the App Store then you cannot transfer your license to another party. In the case of the latter you should install the original version of OS X that came with your computer. You need to repartition the hard drive as well as reformat it; this will assure that the Recovery HD partition is removed. See Step Three above. You may verify these requirements by reviewing your OS X Software License.

  • HT4437 How can i use the tv as a wireless monitor for my computer?

    I can move my pics and music into itunes to watch and hear on tv, but how can i use my tv as a wireless monitor for my computer?

    Unfortunately, no mechanism for this exists for Windows. If you had a Mac, you could get AirParrot...

  • I am enrolled in an online university program that uses Sakai. Fire Fox updated something that attaches computer script to my Word documents when I upload them.

    I am enrolled in an online university program that uses Sakai. Fire Fox updated something that attaches computer script to my Word documents when I upload them. I use a PC and Word 2010

    sigh...this is quite idiotic, but I have found a solution. It was quite simple, really, and yet quite idiotic. I share it for all those reading so that, if you know of anyone else that did what i did, you can easily be the "hero" in their lives.
    After a continued search via youtube or what have you for any possible solutions, I kept coming back to the fact that I was told by my computer that I didn't have "permission" to do the file deletion. I stumbled upon a youtube video that talked about "unlocking", "locking", certain files and what not.
    Long story short, the reason why I couldn't do anything to the files that were on my desktop was due to my "locking" the desktop folder. I must have done this a while back not knowing what I was doing nor the ramifications of clicking a simple box.
    I undid this by:
    Opening Up Finder
    then, going to MacHD --> Users --> My Account Folder
    clicking on Desktop Folder, I "cmd+I"
    I then, unclicked the "locked" option
    I went down to the cog/settings and selected "Apply to enclosed items"
    resulting then in having all my files on my desktop free accessiblity and delete-ability....
    oi...at least I now  know what "locking" a folder (even the desktop folder) can do to other files held within it

  • How can I use automator to import a .csv file into a an excel file

    I would still like all the import settings that I get if I am using excel to do the process, i.e. going in with the text format instead of the general format. That way my dates don't change

    You'll need to use Applescript in Automator.
    Note:  File extension cannot be CSV (Excel will assume that the file is comma separated), so add an action to copy or rename with extension TXT.
    (You can rename back at end of Workflow is needed)
    The Applescript Action is:
    on run {input, parameters}
         repeat with f in input
              tell application "Microsoft Excel"
                   open text file filename (f as string) data type delimited field info {{1, text format}} other char "|" with use other
              end tell
          end repeat
          eturn input
    end run
    NOTE: This is formating the 1st col to text
    If you need to format the second, then you need to:
      open text file filename (f as string) data type delimited field info {{1, general format}, {2, text format}} other char "|" with use other
    (You'll need to list the 1st col, 2nd col, etc until you get to the col to format as text).  Formats are (from the Applescript Excel Library):
    [field info list] : A list contain parse information for the individual columns of data.
    Formats are general format, text format, MDY format, DMY format, YMD format, MYD format, DYM format, YDM format, skip column.
    Or you can skip using Automator and just use an Applescript App (this is a droplet, just drop the files on the icon, or click to choose files):
    on run
         set fs to choose file with prompt "Select one or more files to open:" default location alias (the path to desktop folder as text) with multiple selections allowed
         proceed(fs)
    end run
    on open fs
         proceed(fs)
    end open
    on proceed(fs)
         repeat with f in fs
              tell application "Microsoft Excel"
                   open text file filename (f as string) data type delimited field info {{1, text format}} other char "|" with use other
               end tell
          end repeat
    end proceed

  • How do I use the alternate list template when rendering web app items to a page?

    I need to have the ability to use the main list template on particular pages, but then use different markup for other pages - is there a way that I can specify the alternate list template within the module tag?

    Hi Matt, You should read about web apps here:
    http://helpx.adobe.com/content/help/en/business-catalyst/partner/web-apps-module-create-cu stom.html
    And module reference here:
    http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html
    If you insert through the admin and click customise you will see the option to use listbackup. You will also see that layout availible via FTP and in the admin or DW.
    Here you can see where in the module paramaters the option to choose listbackup occurs:
    http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html#id_65138

  • How do I use an external Monitor to access files on my iMac with a broken screen?

    I have an 20 inch desktop iMac with a broken screen. It is the files on the computer that I wish to recover, after that, I can be on my merry way. Unfortunately, VileVault was on (Not my choice), and for some reason, when I target the disc image of the broken mac with a new one, ONE of the accounts "appears" to be completely empty. All of the accouts were running FileVault, but only one (mine) failed to be transferred because it is "empty". I refuse to believe that my files are actually all gone, because theoretically there should be nothing wrong with the CPU itself, just the screen.
    Thus my goal is to use a monitor on my broken screen iMac and simply log in and access my files normally, and perhaps pull them out with a USB or something. I have a DELL monitor, and a DVI (The big hairy plug with screws I think) converter that works with my old iMac, along with the male/male DVI cord. However, when I hook it up, nothing happens. I have tried booting the old CPU while holding F7, and option as I read on a forum, and neither produced results.
    Does anyone have any ideas on how to 1. Get the monitor to simply show what's going on on the mac? or 2. Pull out my files through some other means?
    Thank you.

    If you have a second Mac computer, you may want to try to copy over as many files you can. One way is to use target disk mode.
    http://support.apple.com/kb/HT1661
    http://lowendmac.com/misc/06/0710.html
    You need to follow this procedure to recovering a filevault id.  Mac OS X 10.3, 10.4: FileVault - How to verify or repair a home directory image ...  http://support.apple.com/kb/HT2631?viewlocale=en_US  
    Robert

  • How do I use the remote wipe feature for file vault 2 / lion?

    I tried to find a preference panel. I know that for the ios you have to link/setup your device. I tried the find my iphone web site to see if my computer was listed there and it isn't at the moment. Is this new lion feature only available later with icloud? I checked the lion feature page and it lists it with file vault 2 with no asterisk so my guess is it should already now work.
    It would be a pity to think you've setup your computer to find out that you hadn't "activated" your computer/laptop
    Thanks,
    Phillyman

    Hi,
    I'm out of the country on business but probably the only way to figure this out is to call apple or drop by their retail stores. If no one figures this out (and I'm pretty sure there is nothing to figure out at this time). I'll try to call apple when I'm back in august.
    I find it wrong that apple touts this as a feature with no disclaimer. I'm a loyal mac fan for twenty years so I'll continue to buy their prodcuts and I did buy lion the day it came out. BUT a disclaimer (as they have done in the past) would have been nice. I know of at least two mac users who usually don't buy new OS's until they get it with their new laptops that specifically bought lion for this feature since they had read about it in a newspaper article.
    I also thought this was one of the more useful features in lion since my family already "lost" an iPad and we liked to delete our data after our alarm and message didn't work for a day.
    I'm sure  apple has it's reasons for not offering the feature just yet but in that case a disclaimer is a must. I would probably drop the reference remote wipe until I have the infrastructure in place.
    Cheers,
    Phillyman

  • How to export report to excel and to text file in previewer

    How to export report to excel?
    And, it takes long time for generate report to rtf or pdf file in previewer.
    How to speed up the process? or, it's better generate report to text file directly by Run_product?
    Please help!

    You can generate report to tab delimite format that can be imported to excel.
    As for the performance question, because reports can't specify what format when you run against previewer, so I don't know what previewer you are talking about. Generate to file is always faster than to your application previewer (assume) because you have one more step after output generated in the file: read from file and render it. Depends on the render and size of the output, it may have significant performance difference.
    Thanks,
    -Shaun

  • Can I use my 32c100u to playback .avi files from my computer? if so, how?

    I have a 32c100u  LCD  HDTV  that I bought in 2010.  Is there any way I can use it to play back .avi files that I have on my computer?
    I can't figure this out.
    Thanks for any enlightenment.

    Did you set it to copy full-resolution photos??? If so, enable your iPod for disk use, open my computer, click on your iPod, and open the pictures folder. You can just drag them from there. If you didn't, use a program such a CopyPod Photo (google it) to copy photos from your iPod. Note that the files will only be the same resolution as your iPod screen (320x240) and not worth using for anything else. If you want to use it for sharing, definitely go with the full-res option. It is at the bottom of the photos pane in the iPod screen in iTunes.

  • How do I restore my bookmarks from a saved file on my computer if it is not a HTML Document file?

    Look I had save a copy of my bookmarks on my external hard drive. I had used the file before to restore my bookmarks in the past with no problem. Now it says its not an html doc file. Or when I had to hit the reset button all my old firefox data was saved to my computers desk top in a folder how can I use the bookmark file in that folder. I hope there is a way.

    Make sure that the backup file with the bookmarks has the correct file extension:
    * .html for a HTML backup
    * .json for a JSON backup
    You can check the type via the right-click context menu of that file and open the Properties.<br />
    If you are not sure about the file type then you can open the file in Firefox via "File > Open File"<br />
    A JSON backup will show as one long text line without line breaks and a HTML backup as a web page with clickable links.<br />
    A JSON backup starts with: <b><nowiki>{"title":"","id":1,"dateAdded":</nowiki></b>
    An HTML backup starts with: <b><nowiki><!DOCTYPE NETSCAPE-Bookmark-file-1></nowiki></b>

  • How can I use a Dropdown list in a table col and only get the choosen key?

    hi!
    I have chosen Cell editor = Dropdown for two of the columns in my WD table  (ordinary Table not ALV) .
    When the table is displayed the first time this looks OK, but if a user selects a value from the dropdown list, both the key and the explanation text is copied into the cell, and the cell column is automatically widened. I want to copy the key value only, and not the connected text. How is this possible?
    I started setting the table as fixed and setting the width on the column, but this was a puzzle I gave up since there are quite a lot of columns.
    regards, Tine

    Well , the problem is that in the dropdown list I want to see both the key value and the text, like you do in SAP GUI. Fex. if I would like to create a dropdown for langauges, factory calendar or countries, I want to see both the country code (the key) and the name of the country in the dropdown list, and then when user choose a line I would only like to see the keyvalue in the input field.  Right now I concatenate the key and the text into the 'value' in the valueset table.
    In some cases the user knows the key value better than the explanational text, and then it is good to show both values. But sInce I would like to save space in the table displayed in the view I only want to show the key values selected in the table (ex. NO if user choose Norway) .
    But maybe it is better to create this kind of input help as an OVS with no input fields .?

  • How to make use of a list partition key in an IR?

    Hi all -- wondering if anyone has any thoughts on the following:
    I have a table like this:
    CREATE TABLE protocol (
    ptl_id INTEGER,
    ptl_name VARCHAR2(100),
    and this table is LIST partitioned on the key value PTL_ID. (There are many reasons for this need which I won't go into).
    My question is, queries that use this table in Interactive Reports I have always have the PTL_ID in them, but it's never a displayed column, it's always hidden (as it's a meaningless surrogate key, not to display to the user). However the default IR behavior, when filtering, won't use it, it will use PTL_NAME (if filtering on a particular PROTOCOL).
    What can I do to make the IR use the list partition key PTL_ID instead of PTL_NAME, even though PTL_ID is hidden and PTL_NAME is displayed? I'd get MUCH better performance if I could get it to query via the list partition key.
    Any thoughts??
    Thanks!
    David

    Users can change the name of the protocol at will, so that is not an option. Switching the partitioning is not an option either, as the PTL_ID's/partitions get pre-created during scheduled maintenance, and there is no tolerance to downtime to create a new partition for every new protocol as they are needed.
    Each partition is put in a separate tablespace as there is a need to archive off protocols once they are done.
    So I'm back to the original question still. My guess is the answer involves a bunch coding work arounds, not something native in the IRs. I figured I'd ask.
    Thanks
    David

  • How can I use a distribution list to send an email or an invitation

    I would like to know if I can have a distribution list (several people that belongs to a group) that at the moment that I would like to send them the same email or invitation, I just wnat to recall the name of my distribution list, as I do in Microsoft outlook, and then the mail or invitation goes directly to everyone that belogs to this distribution list

    Apologies. I should have said Ignore. I can't answer the question as it relates to an iPhone.

  • HT5392 How can I use an Action List to re-order my layers in iAd Producer?  It looks like there's a tool for this, but I can't figure out how to use it.  I want to use a button to switch between a text field and a drawing pad layer.

    I am working on an iBooks Author Widget and want to allow the user to switch between drawing-pad functions and a text field on screen.  I'd like to create an action that will automatically re-order the layers so that the text field is accessible when typing but covered when writing by hand.  Then, I'd like the opposite to be available, so that the text field is accessible when typing, but the drawing pad is left alone.

    Have you tried using the selections in the Encore menu viewer that show you selected and activated states?

Maybe you are looking for