How to copy selected files in Finder (applescript)

I don't like to use hotkeys (such as CMD+C, etc.) and would prefer to copy and paste files in OS X with the mouse just like I did in Windows.
Unfortunately Finder has no such copy and paste buttons in its toolbar like I know them from Windows Explorer. It bothers me that I always have to use the context menu or hotkeys. So I intend to write small scripts with AppleScript and move them into the Finder toolbar to have my custom made buttons.
Unfortunately I am newbie to Applescript and did not yet manage to get such simple script to work despite many trials.
The first script must only copy marked/selected files or folders in Finder to the clipboard so that I can paste them into another Finder window.
The second script should simply paste the clipboard content into Finder.
I tried this but nothing is being copied:
tell application "Finder"
activate
end tell
tell application "System Events"
key down {command}
keystroke "c"
key up {command}
end tell
Would be great if somebody can help me with these few lines.
Thanks in advance

meanwhile got a reply in another forum that works like charm exactly as I want...I post it here below for future newbies...
tell application "Finder" activate
delay 0.2
tell application "System Events"
tell process "Finder"
keystroke "c" using command down
end tell
end tell
end tell
save as program and then drag to Finder toolbar.
You can even change the icon.
Thanks for your attention guys

Similar Messages

  • How to copy selected files to cd

    how do i copy selected files to cd

    The easiest way, at least for me, is to open a folder on the desktop.
    Copy the  selected files in to this folder. This will be the source folder.
    Use the software that came with your computer and burn the CD

  • How To Copy/Access Files From Finder To iCloud?

    Is there a way I can quickly copy files from my Finder window directly into iCloud without having to drag and drop into the web browser window? I like to use my apps in full screen as much as possible and unless I've missed a shortcut of sorts, I have to go through the process of exiting full screen for the purpose of having to drag and drop the files?
    I tried Command-C to copy and then paste but that didn't work.  My preference would be to have full access to my iCloud files through the finder window.  Did I miss a setting in Finder Preferences?
    Thanks

    This is the closest I've come but it doesn't allow you to copy files to the folder in the sidebar:
    http://hints.macworld.com/article.php?story=20120814000425637

  • How do I drag files in Finder to a different folder?

    How do I drag files in Finder to a different folder?

    First, open one Finder window, and then, open another one pressing Command and N keys.
    On one window, go to the folder where the files are, and on the other one, go to the folder where you want to put your files. Choose them with the Command key (or select all if you want to transfer all of them, with Command and A keys) and drag them to the other Finder window

  • How to copy pdf files from computer to ipad

    how to copy pdf files from computer to ipad

    You can PDFs to the iPad, but first you need one or more apps on the iPad that supports PDFs - unlike a 'normal' computer the iPad doesn't have a file system, and everything on it has to be associated with an app.
    Options include free apps such as Apple's iBooks app and also Adobe Reader - and paid-for apps such as GoodReader (which also supports read-only of other documents types).
    For iBooks you can first add the PDFs to your computer's iTunes via File > Add To Library, and you can then sync them by selecting the iPad on the left-hand sidebar of your computer's iTunes (on iTunes 11 you can enable the sidebar via option-command-S on a Mac, control-S on a PC) and using the Books tab on the right-hand side to select and sync them.
    For Adobe Reader adnd GoodReader you can use the file sharing on the Apps tab on the right-hand side to copy them over : http://support.apple.com/kb/ht4094

  • Does anyone know how to copy my files from my ipod to a different computer?

    Does anyone know how to copy my files from my ipod to a different computer? I tried to do it, but all that it did was erase my files. What i want to to is use my ipod to transfer my files to another computer (which has itunes as well) PLEASE help!

    You will need to enable your iPod for disk use. Then, you should see your iPod in "My Computer" and you can open up your iPod's folder there and drag the files into it. You can store the files on the iPod, then connect it to the other computer and drag-and-drop them from the iPod into the designated directory in that computer. Make sure individual files are not larger than 4 GB.

  • How do i select files on my computer to back up to the cloud?

    how do i select files on my computer to back up to the cloud?

    Hi Tholley,
    You could either upload them using a browser at https://creative.adobe.com/files or using the file sync feature in Creative Cloud.
    This document goes over the process:
    http://helpx.adobe.com/creative-cloud/help/sync-files.html
    - Dave

  • How to copy referenced files into iPhoto library

    I have a mixture of referenced files and copies in my iPhoto library. I changed now the preferences to always copy files when importing new photos. But, how can I copy the old referenced photos into my library (they are all over the place)? Is there anything like "Copy all files to the library"?

    csmun
    Welcome to the Apple Discussions.
    But, how can I copy the old referenced photos into my library (they are all over the place)? Is there anything like "Copy all files to the library"?
    I'm afraid there isn't - you'll need to do it the hard way I'm afraid.
    What might help is to go into the Library/Originals folder and examine the aliases there. Right click on an alias and select 'Show Original' A finder window will pop open with the Original File. Then replace the alias with the original.
    Regards
    TD

  • How to copy/delete file

    hi,
    i need to come out a program, which can copy/delete file from unix directory A to directory B, on the application server.
    does any one have any idea how am i going to code the abap program for this?
    thanks

    > i need to come out a program, which can copy/delete file from unix directory A to directory B, on the application server.
    >
    i am assuming that your Application server is Unix.
    unixcommand cp is used to copy the a file from one directory to another.
    cp /dir/file1 /dir2/file2
    the above command will copy the file1 of dir1 to file2 of dir2.
    for delete use the command rm,
    rm /dir/fiel1
    the above command will remove the file1 from directory dir.
    REPORT ZUNIX line-size 400
                    no standard page heading.
    parameters : unixcom like   rlgrap-filename.  
    data: begin of tabl occurs 500,
            line(400),
          end of tabl.
    data: lines type i.
    start-of-selection.
      refresh tabl.
      call 'SYSTEM' id 'COMMAND' field unixcom
                    id 'TAB'     field tabl[].
    "if any error or any thing you get in the tabl
    "just check the tabl once after the finishing

  • How to copy a file from a folder on macbook pro

    ive been trying to copy a file (a video file) from my finder to my external hard drive, drag it and stuff, but i keep getting this forbidden sign.
    i'd love to get some help.
    thanks.

    Hi,
    Normally this happens if the hard drive is either formatted in an incompatible format (like NTFS which is read only) or if you do not have permissions to write to the hard drive.
    You can check the format in disk utility by selecting the external hard drive partition in the left and then down the bottom it will show the format. It should either be Mac OS Extended (Journaled) or MS-DOS FAT. If it is not you will need to erase the drive to format it.
    You can check the drive permissions by right clicking (control clicking) the icon for the external hard drive, and selecting "Get Info". down the bottom in sharing and permissions, check the box that says "Ignore Ownership"
    Hope this helps.

  • How to copy a file from Client to Application Server

    Hello,
    My requirement is user selects a file from Browse button on oracle form - this location is on client side, and have to copy this file on Application server.
    I tried using webutil_file.copy_file function but it gives error - copy_file is not a procedure or is undefined.
    There is another way of Client_to_AS but it needs some changes in configuration files of webutil, which is not allowed in our scenario.
    Source - client machine resident file
    Target- Application server disk location
    So can any one help in this regard?

    Hi Francois,
    Thanks for your suggestion, actually i didnt want to use Client_to_As as client doesnt want to make any changes in any configuration files, no matter how small the change is.
    Anyways we are able to successfully copy the file using Client_to_AS, but one thing that i couldn't understand is why was our webutil_file.copy_file function failing?
    Any hint about this?
    Thanks!
    Avinash.
    Pune- India.

  • How To Copy Selected Music From One Library to Another?

    What is the best way to copy selected music from one library to another?
    I have a big and growing iTunes library -- 33,000 songs.
    A year ago I copied my library to my daughter's new iMac.  Now, a year later, I'm off to visit her and wonder how best to update her library.  In the past year I have added a number of items to my library and I'm sure she has done the same -- some might be the same but many will be different.
    How do I update her library with the new things I've added in the past year but not wipe out things she had added or duplicate when we each have a song?
    I can load any / all of my stuff on an external HD and take that to plug in to her computer.  Then what?  I want to avoid duplicates and make sure I get stuff like album artwork.
    I'm running iTune 10.4 on an iMac with OS X 10.6.8 -- my daughter will have the same iTunes and OS X once we update her software.
    Any advice would be great.
    Thanks

    If you're sharing the same Apple ID and all your songs are from the iTunes Store, it's easy:
    In iTunes on your computer, go to File->Preferences->Store and check the box next to MUSIC under AUTOMATIC DOWNLOADS.
    You should also read this article, the section titled TO DOWNLOAD PREVIOUSLY PURCHASED APPS, BOOKS, MUSIC, OR TV SHOWS TO YOUR COMPUTER:
    http://support.apple.com/kb/ht2519
    You could also use an rsync utility such as backuplist+ to perform a 2-way sync of the files in your two libraries while your computers are connected via FireWire with one of them in FireWire Target Disk Mode, or from your external hard drive with your daughter's computer and then to yours again. After that, you'll need to use iTunes on each computer to update its library with the new files:
    http://rdutoit.home.comcast.net/~rdutoit/pub/robsoft/pages/backup.html
    This last would also be the preferred method if you have authorized each other's computers for media purchased with each other's Apple IDs (i.e. you are not sharing the same Apple ID), or if you have music from sources other than the iTunes Store. Most likely, though, music from sources other than the iTunes Store would not be legal to copy in this way for this purpose, although there is probably no technical impediment.

  • How to set selected file in FileChooser showSaveDialog to default file name

    Hi,
    How do I set selected file in JavaFX 2.0 FileChooser showSaveDialog, so I can prompt the user with a suggested default file name?
    I am converting a Java Swing application I wrote a few years ago to JavaFX 2.0.
    In the Swing application, I use setSelectedFile() as follows:
    JFileChooser jFileChooser = new JFileChooser();
    jFileChooser.setSelectedFile(new File(backupfile));
    jFileChooser.setCurrentDirectory(new File(outputDirectory));
    FileFilter filter = new FileNameExtensionFilter("Comma Delimited (*.csv)", "csv");
    jFileChooser.addChoosableFileFilter(filter);
    jFileChooser.setFileFilter(filter);
    filter = new FileNameExtensionFilter("XML Document (*.xml)", "xml");
    jFileChooser.addChoosableFileFilter(filter);
    jFileChooser.setAcceptAllFileFilterUsed(false);
    jFileChooser.setDialogTitle("Export File");
    int returnVal = jFileChooser.showDialog(jFrame, "Export");
    This would show a file chooser with the file name text field pre-populated with a default backup file name.
    I can't find an equivalent in JavaFX.
    Also, in the Swing application, I was able to determine which extension filter was selected at run time using getFileFilter().getDescription() as follows:
    String extension = jFileChooser.getFileFilter().getDescription();
    if (extension.equals("XML Document (*.xml)")) { ...
    I can't find an equivalent in JavaFX.
    Thanks,
    Barry

    You can use the open sequence file method on the application manager (then you only need to wire the file path)
    Rodéric L
    Certified LabVIEW Architect

  • How to copy a files name and spotlight comments to a text file for an entire folder

    I have movie covers saved as a jpeg for every movie my family and I own. There is about 700 and they each have a comment of the main actors, release dates, and descriptions. This makes it easy to find what to watch. I want my parents to have all of this info but they have a windows laptop so the comments don't transfer with the file and can't be searched like you can on a mac. Is there an applescript, automator, program I can download,  or program code supported in xcode that will do at least one of the following things?
    1)Take the name of the picture file and spotlight comment, copy and paste it into a text document like word that looks like this...
    File Name1- Spotlight Comment for file 1
    File Name 2- Spotlight Comment for file 2
    . for all 700 files in a folder
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    3) Is there a free photo program that works on mac and windows that I can put all my movie pictures in and have a description like I did with the comments? It would also need a place that to search the description for keywords. So Basically an itunes for pictures that works on both mac and windows. If so I still need a way to get the spotlight comments to the description.
    4) I feel like this would make things more difficult, but if not I can put all of the .m4v files in itunes so instead of pasting all the comments back into a file in finder paste them in a description in itunes
    5) At the very least a code that I can run one by one for every file that will paste the comments into the same document
    Note: When I say spotlight comments I mean the comment box that is available when you click on get info of a file. The pictures are in the pictures section of finder in a folder called Movie Pictures. The movie files are on an external hard-drive in a file called Movies. Also I am slightly familiar with applescript and automater in that I have used both to create keyboard shortcuts and simple voice commands. I have programmed in c++ and C too. So If you give me a code for applescript I do know what to do with it.
    Thanks to anyone who takes the time to read all of this and extra thanks to anyone who tries to help.

    Clendenen02 wrote:
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    This Bash script will do it.
    Edit "PicDir" and "MovDir" to the location of your Folders
    (Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
    #!/bin/bash
    PicDir=$HOME/Desktop/Pictures
    MovDir=$HOME/Desktop/Movies
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [ -e "$MovDir"/$movname ]; then
                         xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
                   fi
              fi
         fi
    done

  • How to copy a file to a CD-R?

    When I last did this on my Macbook AIr and Superdrive years ago it seemed easy. Now, I'm stuck.
    I put the blank CD-R into the Superdrive, launched the Disk Utility, click "Burn," Finder opens, but the file I want to copy in the Desktop folder is not highlighted and thus not available.
    Also, seems I should see the Superdrive on the Desktop, and I'm not. I look for the Superdrive in Finder and just see Devices > Remote Disk.
    I think I'm doing something out of order. If someone could point me to 1-2-3 directions, I'd appreciate it.

    Did you try right click (two finger click) on the file in Finder then select Burn to Disk?

Maybe you are looking for

  • Purcahse order not coming in FBL1N Report

    Hi ,    When i go to FBL1N Report ( Vendor Line Items Display ) , and execute it inside the Purchasing document field i am not getting the Purchase Order number  , its blank , why is it so , is there any extra settings to be done for that regards raj

  • Acrobat Standard 7.0 Page handling

    I have a client using Acrobat Standard 7.0 on Windows XP SP2. A couple of weeks ago she noticed a change in her Acrobat print settings and did not know what the "problem" was. Long story short, I found that the "Choose Paper Source by PDF page size"

  • About Apple Mac Mail Application

    I Have a Problem with 1 of My E-Mail Accounts that I Use on Apple Mac Mail Application on My Apple iMac Computer I Have an AOL AIM E-Mail Account that i use to check My E-Mail Every day on Apple Mac Mail but for Some Reason it's not working no more t

  • Current date - 2 years

    Hi I need to get one of the report header column  like  current year - 2 based on the current date. For suppose format is like below 2010 03 if todays date is  10/03/2012 I need to display  2010 03 There is no source for  date column . I am using xir

  • SMTP Code Page / Charset

    Dear all, I have a problem with SMTP Code Page / Charset. In standard ECC 6.0 system - SMTP (Code Page: 0 No conversion into other Characters Set), when sending an email with Unicode content, I can receive the email in charset="utf-8" (viewable). But