i am trying to do some a simple applescript, but i could use some help. what i want to do is:
open the folder: ~/Documents/
check if file exists in that folder named "index.html"
if it exists, then delete the file.
if it does not exist, do something else.
then open the parent folder (looking for a generic command similar to "cd ..")
i have tried to figure this out with the "record script" option, but it always uses my current user documents folder, and i would like it to be more generic. thanks if anyone can help!
open the folder: ~/Documents/
check if file exists in that folder named "index.html"
if it exists, then delete the file.
if it does not exist, do something else.
then open the parent folder (looking for a generic command similar to "cd ..")
i have tried to figure this out with the "record script" option, but it always uses my current user documents folder, and i would like it to be more generic. thanks if anyone can help!