Page 1 of 1

Default folder

Posted: Wed Jan 25, 2012 5:52 pm
by bobtimpone
Hi All
I am a live code beginner
I am trying to allow the user to select a directory then play any videos in that directory.
I have worked through a couple of the tutorials but cant seem to get it working.
Can you point me in the right direction.

Re: Default folder

Posted: Wed Jan 25, 2012 7:55 pm
by FourthWorld
See the "answer folder" command in the Dictionary.

Re: Default folder

Posted: Wed Jan 25, 2012 8:01 pm
by jmburnod
Hi Bobtimpone

Try this

Code: Select all

on SelectInMyFolder
  put MyPathFolder into defaultPath -- Myfolder is a path of a folder
   set the defaultfolder to defaultPath
  answer file prompt with defaultPath
end SelectInMyFolder
Best regards

Jean-Marc

Re: Default folder

Posted: Mon Jan 30, 2012 3:44 pm
by bobtimpone
Thank you all !!