I have an applescript folder action that triggers when a text file is put in a folder in Dropbox. (activates a program, processes the text)
When I do extensive testing at home using the folder locally, accessing it from other computers on my home network, using the dropbox website, using an ipad app, and even having friends elsewhere who are shared to the folder use it, it works as it's supposed to.
But I'm getting less than positive results when I put files in it when I use the drop box website or ipad app from work during the day. Either it doesn't work like it's supposed to, missing steps in the script, or it doesn't work at all.
As I know the code of the script works, the problem has to be something else.
From a chat server I stay connected to, I know it's not a network interruption (and that would delay execution thru dropbox, not break it).
The only real difference I can think of is that as I'm not using the computer, it's in sleep mode, or at least spun down... (I'm not sure what my power settings are at the moment). Could that be causing issues with the "folder action" part of the script?
After the script starts going, it activates a program, then has a delay of .5 seconds, and then issues a Cmd N"
Might the problem be that the computer is asleep, it wakes when the dropbox file is created, but while it's waking (it's a g5 with leopard, so not super quick) it's missing commands? (does that even make sense?) and maybe addding a longer delay at the very start might solve it?
(*The script is discussed in another thread...I wanted to make this thread to focus on the folder action triggering problem)
When I do extensive testing at home using the folder locally, accessing it from other computers on my home network, using the dropbox website, using an ipad app, and even having friends elsewhere who are shared to the folder use it, it works as it's supposed to.
But I'm getting less than positive results when I put files in it when I use the drop box website or ipad app from work during the day. Either it doesn't work like it's supposed to, missing steps in the script, or it doesn't work at all.
As I know the code of the script works, the problem has to be something else.
From a chat server I stay connected to, I know it's not a network interruption (and that would delay execution thru dropbox, not break it).
The only real difference I can think of is that as I'm not using the computer, it's in sleep mode, or at least spun down... (I'm not sure what my power settings are at the moment). Could that be causing issues with the "folder action" part of the script?
After the script starts going, it activates a program, then has a delay of .5 seconds, and then issues a Cmd N"
Code:
tell window 1
delay 0.5
keystroke "n" using command down
Might the problem be that the computer is asleep, it wakes when the dropbox file is created, but while it's waking (it's a g5 with leopard, so not super quick) it's missing commands? (does that even make sense?) and maybe addding a longer delay at the very start might solve it?
(*The script is discussed in another thread...I wanted to make this thread to focus on the folder action triggering problem)