Open a program, but hide it from the screen

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

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

Similar Messages

Maybe you are looking for