I just get a pull-down with a single entry for 'eBooks' and I can't go up in the directory.
Any thoughts? I'm a noob when it comes to this Applescript Obj-C stuff.
Thanks.
tell
application "Automator Runner"
activate
set
openPanel to call method "openPanel"
of class "NSOpenPanel"
set
trueBool to true
call method "setFloatingPanel:"
of openPanel
with parameter trueBool
call method "setCanChooseFiles:"
of openPanel
with parameter trueBool
call method "setCanChooseDirectories:"
of openPanel
with parameter trueBool
call method "setResolvesAliases:"
of openPanel
with parameter trueBool
call method "setAllowsMultipleSelection:"
of openPanel
with parameter trueBool
call method "setMessage:"
of openPanel
with parameters {"Please choose client files. Cmd-Click to select more than one file/folder."}
call method "setTitle:"
of openPanel
with parameters {"Client Files Collect"}
call method "setDirectoryURL:"
of openPanel
with parameters {"/Users/jim/Documents/eBooks/"}
set
theResult to call method "runModal"
of openPanel
if
theResult is 1 then
-- 0 is returned when the cancel button is pressed
set
chosenPaths to call method "filenames"
of openPanel
end if
end tell