Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

GPap

macrumors regular
Original poster
May 5, 2014
167
4
Finder / Go, press down the Option key to reveal the Library.

Or Cmd + Shift + g, paste : ~/Library
Thanks but I mean to open Library when I'm setting to open a file with Calendar.
 

G4DP

macrumors 65816
Mar 28, 2007
1,451
3
Sorry. Just trying to get to the root of the problem. The Automator action previously mentioned works fine for me and probably the vast majority or Mac users. If you think I'm wasting your time you should probably try another forum.

OP if you want something to be open at a said time try Power Manager for Mac.

Unlike Automator it works as is states. Not needing to be able to script. Unless you know AppleScript, Automator is a waste of space.
 

GPap

macrumors regular
Original poster
May 5, 2014
167
4
This way : Cmd + Shift + g, paste : ~/Library

Doesn't work, I get the warning again.

----------

OP if you want something to be open at a said time try Power Manager for Mac.

Unlike Automator it works as is states. Not needing to be able to script. Unless you know AppleScript, Automator is a waste of space.
Seems to be what I'm looking for ! It's expensive also !
 

GPap

macrumors regular
Original poster
May 5, 2014
167
4
Try this :

System Preferences / Security and Privacy

Privacy tab / Accessibility

Check the tickbox "Automator"...

I did all these but still get the warning. The problem for me is with all the apps, not only with Automator apps.
 

Bruno09

macrumors 68020
Aug 24, 2013
2,202
153
Far from here
Weird indeed.

I have just tried again to do things the simplest way :

In Automator I created an Application (not a Calendar Alarm) from a single action :

"Run a shell script", which is "open -a contacts.app"

I have saved this app (as an app) to the Desktop.

Then created a new event in calendar with "open file".."name of the app".

It does work : Contacts open at time of event.

I don't know what your problem is.
Found this but no solution alas :
https://discussions.apple.com/thread/5477871?tstart=0

EDIT : do you use iCloud with Calendar ?? (I don't).
 

GPap

macrumors regular
Original poster
May 5, 2014
167
4
Weird indeed.

I have just tried again to do things the simplest way :

In Automator I created an Application (not a Calendar Alarm) from a single action :

"Run a shell script", which is "open -a contacts.app"

I have saved this app (as an app) to the Desktop.

Then created a new event in calendar with "open file".."name of the app".

It does work : Contacts open at time of event.

I don't know what your problem is.
Found this but no solution alas :
https://discussions.apple.com/thread/5477871?tstart=0

EDIT : do you use iCloud with Calendar ?? (I don't).

This is exactly my problem, the app cannot be open from Calendar. I use both iCloud and the simple Calendar app.
 

Bruno09

macrumors 68020
Aug 24, 2013
2,202
153
Far from here
I do use Calendar, I use iCloud for Contacts, but I do not use iCloud for Calendar.

Therefore I wondered if iCloud could be the problem :confused:
 

GPap

macrumors regular
Original poster
May 5, 2014
167
4
I do use Calendar, I use iCloud for Contacts, but I do not use iCloud for Calendar.

Therefore I wondered if iCloud could be the problem :confused:

I hope Apple can fix soon this bug !
 

kryten2

macrumors 65816
Mar 17, 2012
1,114
99
Belgium
After looking at this thread and the other thread I think it's time to try something different. It's not to difficult so here goes. You said you wanted to open a site at specific time. Let's try to do it with a LaunchAgent. Here's an launchd example that should open "www.google.com every day at 1am. Save the below snippet into a plain text file in your ~/Library/LaunchAgents folder with the file name user.yourusername.openlocation.plist. If your username is steve replace yourusername with steve. In the examples you'll see kryten, obviously that's my username. So everywhere you see kryten replace it with yours.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/Pro$
<plist version="1.0">
<dict>
          <key>Label</key>
          <string>user.kryten.openlocation</string>
          <key>ProgramArguments</key>
          <array>
                    <string>osascript</string>
                    <string>-e</string>
                    <string>open location "http://www.google.com"</string>
          </array>
          <key>StartCalendarInterval</key>
          <dict>
                    <key>Hour</key>
                    <integer>1</integer>
                    <key>Minute</key>
                    <integer>0</integer>
          </dict>
</dict>
</plist>

You can test it by using the following command in the Terminal application :

Code:
# this line loads the launchd job
launchctl load Library/LaunchAgents/user.kryten.openlocation.plist

# this line forces the job to trigger immediately rather than waiting until 1am
launchctl start user.kryten.openlocation

# this line unloads the plist, in case there's an error
launchctl unload Library/LaunchAgents/user.kryten.openlocation.plist
 

GPap

macrumors regular
Original poster
May 5, 2014
167
4
After looking at this thread and the other thread I think it's time to try something different. It's not to difficult so here goes. You said you wanted to open a site at specific time. Let's try to do it with a LaunchAgent. Here's an launchd example that should open "www.google.com every day at 1am. Save the below snippet into a plain text file in your ~/Library/LaunchAgents folder with the file name user.yourusername.openlocation.plist. If your username is steve replace yourusername with steve. In the examples you'll see kryten, obviously that's my username. So everywhere you see kryten replace it with yours.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/Pro$
<plist version="1.0">
<dict>
          <key>Label</key>
          <string>user.kryten.openlocation</string>
          <key>ProgramArguments</key>
          <array>
                    <string>osascript</string>
                    <string>-e</string>
                    <string>open location "http://www.google.com"</string>
          </array>
          <key>StartCalendarInterval</key>
          <dict>
                    <key>Hour</key>
                    <integer>1</integer>
                    <key>Minute</key>
                    <integer>0</integer>
          </dict>
</dict>
</plist>

You can test it by using the following command in the Terminal application :

Code:
# this line loads the launchd job
launchctl load Library/LaunchAgents/user.kryten.openlocation.plist

# this line forces the job to trigger immediately rather than waiting until 1am
launchctl start user.kryten.openlocation

# this line unloads the plist, in case there's an error
launchctl unload Library/LaunchAgents/user.kryten.openlocation.plist

Thanks a lot for your answer kryten2. I want to see my apps (all kinds of apps) opening at Calendar event (it was just an example to open webpages at specific time). Also I found that if I run the apps manually first, everything works fine. Thanks once again.
 

Weaselboy

Moderator
Staff member
Jan 23, 2005
34,137
15,602
California
I do use Calendar, I use iCloud for Contacts, but I do not use iCloud for Calendar.

Therefore I wondered if iCloud could be the problem :confused:

Nope... in the other thread here I use iCloud and was able to have an iCloud Calendar event alarm trigger an Applescript application to launch a web site with no issues. The exact same application and setup would not work for GPap for some reason. There is something specific to his setup that is breaking this. :confused:

If kryten2 can't figure this out the three of us are going to have to go over to GPap's house and burn his Mac in a ceremonial fire in the backyard, because it may be possessed by demons. :D
 

Bruno09

macrumors 68020
Aug 24, 2013
2,202
153
Far from here
There is something specific to his setup that is breaking this. :confused:
I must say that I have had the same warning GPap had, but it was random.

I had it a few times after having moved the file to open to another location, say the Desktop.

So I did some more tests in order to understand if the issue occurred for a specific location, but nope, it actually was random.
 

GPap

macrumors regular
Original poster
May 5, 2014
167
4
....have to go over to GPap's house and burn his Mac in a ceremonial fire in the backyard, because it may be possessed by demons. :D

Hahahahahahahaha, just give me a week please, to exorcise it !

----------

I must say that I have had the same warning GPap had, but it was random.

I had it a few times after having moved the file to open to another location, say the Desktop.

So I did some more tests in order to understand if the issue occurred for a specific location, but nope, it actually was random.

The problem is that the OS has to trusting the app so it needs to run it manually once as your link says :

https://developer.apple.com/library....html#//apple_ref/doc/uid/TP40011183-CH3-SW29
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.