Closed craibuc closed 9 years ago
You should put the definition of hideExtension()
inside the build
script. If you want to keep it at the top level, you may change the code as follows:
property TopLevel : me
script build
-- [...]
TopLevel's hideExtension("Controller.scptd")
end script
on hideExtension(theFile)
-- [...]
end hideExtension
Inside a task, you may get the POSIX path of the working directory with my PWD
.
I was hoping to execute AppleScript from within the the
build
action:However, I get an error:
Is there a way to do this? Also, how do I get a reference to the current directory?