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 »

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: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Default folder

Post by FourthWorld »

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: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Default folder

Post 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
https://alternatic.ch
bobtimpone
Posts: 25
Joined: Tue Jan 03, 2012 9:10 pm

Re: Default folder

Post by bobtimpone »

Thank you all !!
Post Reply