AppleScript to rename a file within an App -
i trying write script rename file within app. way if update happens, correct issue. have following, not sure how correct is:
on idle tell application "finder" set msgbox "/applications/videohost.app/contents/resources/msgbox.nib" exists end tell if msgbox = true tell application "finder" set name of file "/applications/videohost.app/contents/resources/msgbox.nib" "/applications/videohost.app/contents/resources/no_msgbox.nib" end tell end if return 60 end idle
i add start items , choose "stay open after run" option
try this..
on idle set msgboxpath "/applications/videohost.app/contents/resources/msgbox.nib" tell application "system events" if exists file msgboxpath set name of file msgboxpath "no_msgbox.nib" end tell return 60 end idle
Comments
Post a Comment