Code:
on mybuttonhandler27_(sender)
set thePath to POSIX path of (choose folder with prompt "Please choose a folder to Hide")
set otterthan to "chflags hidden "& thePath
do shell script otterthan
end
on mybuttonhandler28_(sender)
set otterthando to "chflags nohidden "& thePath
do shell script otterthando
end
How do i make xcode remember path?
The first part works, but i want to be able to undo it too.