filePath for audioClip

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Preston Shea
Posts: 73
Joined: Sat Apr 08, 2006 6:51 pm

filePath for audioClip

Post by Preston Shea » Mon Jan 14, 2008 8:24 pm

During development the defaultFolder is the one with the Rev engine in it (right?). How do I get the name of the folder where the stack I am working on to be the defaultFolder? I want to be able to put in a command like

get <wherever this stack happens to be>
set the defaultFolder to it

How is this done (Windows)?

Thanks
In nova fert animus mutatas dicere formas corpora.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Jan 14, 2008 10:28 pm

Preston,

Code: Select all

set the itemDel to slash
set the defaultfolder to \
item 1 to -2 of the effective filename of this stack
Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply