Page 1 of 1

moving up 1 directory when putting a file to URL

Posted: Fri Apr 17, 2009 10:30 pm
by magice
When putting a file to URL you use \ to indicate the next directory just like the file path. Your starting point if not otherwise indicated is the folder your rev file is in. Is there a way to go up one directory from your start point without going all the way to the root?

Posted: Fri Apr 17, 2009 11:04 pm
by bn
hi magice,

Code: Select all

on mouseUp pMouseBtnNo
    put the effective filename of this stack into temp -- effective in case it is a substack
    if temp is empty then 
        put "this stack has not been saved yet"
        exit mouseUp -- file has not been saved yet
    end if
    set the itemdelimiter to "/"
    put item 1 to -3 of temp & "/" -- the folder above original folder of where the stack is saved
end mouseUp
it should give you what you want
regards
Bernd

Posted: Fri Apr 17, 2009 11:06 pm
by magice
perfect, thank you