Current position:  Home > Default > Open a program, but hide it from the screen

Open a program, but hide it from the screen

Time:November 30
Advertisement
I have an applescript that opens Safari and does some gui-scripting with a webstie. This script is set to run at a certain time of day and when ever it runs, Safari pops up and interupts what I'm already doing. I googled it and found to use "launch" instead of "activate" when I'm telling Safari to open, but it didn't work.
Any ideas?
Thanks,
axls
Advertisement
I've never tried gui scripting with the application hidden so I'm not sure if the following will help?
set myApp to "Safari"
tell application myApp
launch
tell application "Finder" to set visible of process myApp to false
end tell