Default folder

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bobtimpone
Posts: 25
Joined: Tue Jan 03, 2012 9:10 pm

Default folder

Post by bobtimpone » Wed Jan 25, 2012 5:52 pm

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Default folder

Post by FourthWorld » Wed Jan 25, 2012 7:55 pm

See the "answer folder" command in the Dictionary.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Default folder

Post by jmburnod » Wed Jan 25, 2012 8:01 pm

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
https://alternatic.ch

bobtimpone
Posts: 25
Joined: Tue Jan 03, 2012 9:10 pm

Re: Default folder

Post by bobtimpone » Mon Jan 30, 2012 3:44 pm

Thank you all !!

Post Reply