Re: Launch agent issue
Re: Launch agent issue
- Subject: Re: Launch agent issue
- From: Robert Poland <email@hidden>
- Date: Thu, 15 Jan 2015 14:33:20 -0700
> On Jan 15, 2015, at 7:42:AM, Paul Fidler <email@hidden> wrote:
>
> I may be wrong, but you can’t do this:
>
>> <string>/usr/bin/osascript /Library/Scripts/Universal\ Scripts/MorningStartUp.app</string>
In 10 other similar scripts it looks like they are all broken.
Do you suppose it’s a Yosemite thing?
Off to Google.
> You have to point it at a script name.sh with contains the
>
>> /usr/bin/osascript /Library/Scripts/Universal\ Scripts/MorningStartUp.app
>
> Make a change to the line to point to an empty .sh
>
> Once it’s running with no errors, add the osascript (with accompanying bash bits, etc) and see what the result it
>
> Don’t forget your permissions on both the plists and .sh
Permissions are set.
> On 15 Jan 2015, at 14:10, Robert Poland <email@hidden> wrote:
>>
>> I realize that this is not an applescript issue but I hope it will teach the experts that may have an answer.
Typo, teach should be reach.
>> I have a launch agent (below) that has quit and I see no reason for it.
>> The Script addressed works when run by it’s self.
>> I have unloaded and loaded it.
>> A "launchctl list" command shows it is active.
>>
>> Help would be appreciated.
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
>> <plist version="1.0">
>> <dict>
>> <key>Label</key>
>> <string>com.rpoland.MorningStartup</string>
>> <key>Program</key>
>> <string>/bin/sh</string>
>> <key>ProgramArguments</key>
>> <array>
>> <string>sh</string>
>> <string>-c</string>
>> <string>/usr/bin/osascript /Library/Scripts/Universal\ Scripts/MorningStartUp.app</string>
>> </array>
>> <key>StartCalendarInterval</key>
>> <dict>
>> <key>Hour</key>
>> <integer>5</integer>
>> <key>Minute</key>
>> <integer>30</integer>
>> </dict>
>> </dict>
>> </plist>
>>
>>
>> TIA,
>>
>> Robert Poland
>> Fort Collins CO
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
>
Robert Poland
Fort Collins CO
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden