Results 1 to 6 of 6
  1. #1
    More AppleScript Help

    Member Since
    Oct 25, 2009
    Posts
    59
    More AppleScript Help
    In AppleScript, I want to figure out how to pick a file, pick an output folder, then copy the selected file to the selected output folder.

    I've tried this.



    It compiles without error, but doesn't do anything I want it to. Can someone tell me how to do this correctly?

  2. #2
    More AppleScript Help
    scathe's Avatar
    Member Since
    Jan 12, 2009
    Location
    Prague, Czech Republic
    Posts
    1,096
    Specs:
    2,4Ghz 15" unibody
    You can use Quicksilver to accomplish this and much faster since it finds the file as you type the name.

    Imo this script won't really save you time on a daily basis since you have to manually select everything anyway ... why not just drag and drop

    Edit:
    however if you want to use applescript, I came up with the following:

    choose file without invisibles
    set SELECTEDFILE to the result
    choose folder without invisibles
    set OUTPUT to the result

    tell application "Finder" to duplicate SELECTEDFILE to folder OUTPUT

  3. #3
    More AppleScript Help

    Member Since
    Oct 25, 2009
    Posts
    59
    Thanks, man. I'm making an AppleScript application, this is not for my own convenience.

  4. #4
    More AppleScript Help
    scathe's Avatar
    Member Since
    Jan 12, 2009
    Location
    Prague, Czech Republic
    Posts
    1,096
    Specs:
    2,4Ghz 15" unibody
    Quote Originally Posted by Babkockdood View Post
    Thanks, man. I'm making an AppleScript application, this is not for my own convenience.
    I realized later that might be your intention so actually looked at the task at hand instead of offering an alternative

    good luck with your app and future scripting

  5. #5
    More AppleScript Help

    Member Since
    Oct 25, 2009
    Posts
    59
    Quote Originally Posted by scathe View Post
    I realized later that might be your intention so actually looked at the task at hand instead of offering an alternative

    good luck with your app and future scripting
    This is my first app that handles documents, so I needed some help with it.

  6. #6
    More AppleScript Help

    Member Since
    Feb 14, 2010
    Posts
    1
    Hi

    Try this.

    on open thefile
    set t to choose folder
    repeat with i in thefile
    tell application "Finder"
    move i to t
    end tell
    end repeat
    end open

    save it as an application in script editor and drop stuff on it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Applescript
    By EdMarx in forum OS X - Apps and Games
    Replies: 0
    Last Post: 02-10-2012, 04:06 AM
  2. Applescript
    By SgtDave in forum OS X - Development and Darwin
    Replies: 6
    Last Post: 01-19-2011, 03:50 PM
  3. Applescript help please?
    By thtguyjosh in forum OS X - Apps and Games
    Replies: 8
    Last Post: 08-22-2010, 07:22 PM
  4. Applescript
    By nixonbw in forum OS X - Operating System
    Replies: 0
    Last Post: 07-17-2008, 07:00 PM
  5. AppleScript
    By TehHero in forum OS X - Apps and Games
    Replies: 0
    Last Post: 01-26-2008, 09:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •