Hi There
I’m a pretty new in the automator usage, I hope that the topic will be relevant. I have added an automator folder action to a smb mount folder on my computer. This is working fine. My problem is when I restart my machine the folder action is gone. Does anybody knows if it possible to start an automator (or an apple script) action which will be able to attach the folder action when the smb folder is “fresly mounted”
thanks in advance
Jerome
Strangely , I ran into this problem today, at work and tasked my self to see if I could do this when I got home.
I run a script to mount my volumes and then open windows. Its not a login item as I want some control, so its a app that I double click to run.
My solution will be to add the attachment at the end of the script.
It appears to be very simple.
I will put this on the end of my main script
tell application "System Events"
set UserName to name of (current user) as string
set Hard_Disk to name of (startup disk) as string
set mypath to Hard_Disk & ":Users:" & UserName & ":" as string
set folder1 to mypath & "Desktop:Chronos" as alias
set alertScript to Hard_Disk & ":Library:Scripts:Folder Action Scripts:add - new item alert.scpt" as alias
attach action to folder1 using alertScript
end telll