Drag File selection in Apple Script?

Discussion in 'Mac Programming' started by VideoBeagle, Sep 1, 2014.

  1. VideoBeagle macrumors 6502a

    Joined:
    Aug 17, 2010
    Location:
    App Q&A testing by request.
    #1
    (I've failed at figuring the right terms to google)

    In most modern Mac open/select file dialogs, you can drag a file/folder into the open dialog window and the open dialog window will focus on that location.

    I've found in my scripts, that doesn't happen. I just get an error beep when I try to click in another window while the open dialog is open.

    This is the syntax I'm using in my scripts:
    Code:
    set mifold to choose folder
    Is there another way to do this, so you can do the drag to select thing?
     
  2. kryten2 macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #2
    I seem to be able to do this. Drag a file/folder from a Finder window into the open dialog window and the open dialog window will focus on that file/location.
    You can always try/use something else to create dialog boxes like Pashua etc.

    Note : Tested on Mavericks 10.9.4.

    Info : http://www.bluem.net/en/mac/pashua/
     

    Attached Files:

Share This Page