moving up 1 directory when putting a file to URL
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
moving up 1 directory when putting a file to URL
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?
hi magice,
it should give you what you want
regards
Bernd
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
regards
Bernd