|
Re: How to script the launching of a script at a specific time...
Well, thank you very much for pointing that out. I'll edit the post anyway so that it sticks to the documentation.
Jean-Christophe
Jean-Christophe
Well, thank you very much for pointing that out. I'll edit the post anyway so that it sticks to the documentation.
Jean-Christophe
Jean-Christophe
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#156
·
|
|
Re: How to script the launching of a script at a specific time...
May I ask what version of the OS you are running?
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
May I ask what version of the OS you are running?
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
|
By
Shane Stanley
·
#155
·
|
|
Re: How to script the launching of a script at a specific time...
If it’s correct, it means what you think it means, but I’d still argue that unless that's officially documented, it is better not to rely on it.
Best
Phil
@sqwarq
If it’s correct, it means what you think it means, but I’d still argue that unless that's officially documented, it is better not to rely on it.
Best
Phil
@sqwarq
|
By
2551phil
·
#154
·
|
|
Re: How to script the launching of a script at a specific time...
Ok, I found where I got this idea. It's in the http://www.launchd.info link:
And indeed, it did not make sense to me :) But since it works I thought my comments in the code were not entirely
Ok, I found where I got this idea. It's in the http://www.launchd.info link:
And indeed, it did not make sense to me :) But since it works I thought my comments in the code were not entirely
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#153
·
|
|
Re: How to script the launching of a script at a specific time...
Phil,
You're right. I was confused. I'll correct the post later today.
Jean-Christophe
Jean-Christophe Helary
-----------------------------------------------
@brandelune
Phil,
You're right. I was confused. I'll correct the post later today.
Jean-Christophe
Jean-Christophe Helary
-----------------------------------------------
@brandelune
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#152
·
|
|
Re: How to script the launching of a script at a specific time...
Well, the docs say this:
Program <string>
This key maps to the first argument of execv(3) and indicates the abso-
lute path to the executable for the job. If this key is missing, then the
Well, the docs say this:
Program <string>
This key maps to the first argument of execv(3) and indicates the abso-
lute path to the executable for the job. If this key is missing, then the
|
By
2551phil
·
#151
·
|
|
Re: How to script the launching of a script at a specific time...
Wow, thank you Phil :-)
I know. I wrote about that in the comments. It is just that the sample files I got all had both, so I though it was better to keep the data just to be on the safe side.
Are you
Wow, thank you Phil :-)
I know. I wrote about that in the comments. It is just that the sample files I got all had both, so I though it was better to keep the data just to be on the safe side.
Are you
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#150
·
|
|
Re: How to script the launching of a script at a specific time...
Good work! I shall retweet that.
BTW, you don’t need to specify both Program and Program Arguments in your plist. If you leave out the Program key (and the osascript string that follows it), launchd
Good work! I shall retweet that.
BTW, you don’t need to specify both Program and Program Arguments in your plist. If you leave out the Program key (and the osascript string that follows it), launchd
|
By
2551phil
·
#149
·
|
|
Re: How to script the launching of a script at a specific time...
I just wrote an article on that issue. Thank you all for your help.
(any comments are welcome)
https://mac4translators.blogspot.jp/2017/12/automation-scheduling-file-and.html
Jean-Christophe
I just wrote an article on that issue. Thank you all for your help.
(any comments are welcome)
https://mac4translators.blogspot.jp/2017/12/automation-scheduling-file-and.html
Jean-Christophe
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#148
·
|
|
How To Get List of Valid Time Zone IDs
Thanks for this handy script, Shane.
I started a new topic to help others find it.
Best Regards,
Jim Underwood
aka JMichaelTX
From: Shane Stanley <sstanley@...>
Date: Tuesday, December 5, 2017 at
Thanks for this handy script, Shane.
I started a new topic to help others find it.
Best Regards,
Jim Underwood
aka JMichaelTX
From: Shane Stanley <sstanley@...>
Date: Tuesday, December 5, 2017 at
|
By
JMichaelTX
·
#147
·
|
|
Re: How to script the launching of a script at a specific time...
You can still do it via Calendar.app -- you just have to set the file manually. Otherwise it's probably a matter of launchd or a third-party utility.
--
Shane Stanley
You can still do it via Calendar.app -- you just have to set the file manually. Otherwise it's probably a matter of launchd or a third-party utility.
--
Shane Stanley
|
By
Shane Stanley
·
#146
·
|
|
Re: How to script the launching of a script at a specific time...
Ok, so the only way to actually launch a script at a given date/time is to use launchd I guess ?
Jean-Christophe Helary
-----------------------------------------------
@brandelune
Ok, so the only way to actually launch a script at a given date/time is to use launchd I guess ?
Jean-Christophe Helary
-----------------------------------------------
@brandelune
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#145
·
|
|
Re: How to script the launching of a script at a specific time...
As noted elsewhere, you can't do that since macOS 10.9. The filepath property is a vestige of bygone carefree days.
--
Shane Stanley
As noted elsewhere, you can't do that since macOS 10.9. The filepath property is a vestige of bygone carefree days.
--
Shane Stanley
|
By
Shane Stanley
·
#144
·
|
|
How to script the launching of a script at a specific time...
If there is an Applescript way to open a specific file at a given time that does not involve Calendar, I'm all for it, but right now I'm trying to focus on Calendar because that's where I manage all
If there is an Applescript way to open a specific file at a given time that does not involve Calendar, I'm all for it, but right now I'm trying to focus on Calendar because that's where I manage all
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#143
·
|
|
Re: Is it me or is Finder scripting broken?
Thanks Chris, that’s mostly a winner, at least I can now get and set the property. Hopefully I can eventually get the Finder to respond to the changes. For now I’ll just abort the script and set
Thanks Chris, that’s mostly a winner, at least I can now get and set the property. Hopefully I can eventually get the Finder to respond to the changes. For now I’ll just abort the script and set
|
By
John Stewart
·
#142
·
|
|
Re: Is it me or is Finder scripting broken?
Hey John,
Try this:
----------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2017/11/26 19:40
# dMod: 2017/11/26 19:44
# Appl: Finder
# Task: Get
Hey John,
Try this:
----------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2017/11/26 19:40
# dMod: 2017/11/26 19:44
# Appl: Finder
# Task: Get
|
By
Christopher Stone
·
#141
·
|
|
Re: Is it me or is Finder scripting broken?
Thanks Bob,
That works but doesn’t solve my problems. I’m looking at the desktop not just any random Finder window. I have a script that cleans my desktop by moving file/icons around, it won’t
Thanks Bob,
That works but doesn’t solve my problems. I’m looking at the desktop not just any random Finder window. I have a script that cleans my desktop by moving file/icons around, it won’t
|
By
John Stewart
·
#140
·
|
|
Re: Is it me or is Finder scripting broken?
Maybe the following will be of some help;
tell application "Finder"
activate
if ((current view of window index 1) = list view) then
set wdw to window 1
select wdw -- in case the window was not
Maybe the following will be of some help;
tell application "Finder"
activate
if ((current view of window index 1) = list view) then
set wdw to window 1
select wdw -- in case the window was not
|
By
Robert Poland
·
#139
·
|
|
Is it me or is Finder scripting broken?
Can't get or set list, column or icon view properties:
tell application id "com.apple.finder" -- Finder
get properties of Finder preferences
(* comment out next line to see all properties *)
get
Can't get or set list, column or icon view properties:
tell application id "com.apple.finder" -- Finder
get properties of Finder preferences
(* comment out next line to see all properties *)
get
|
By
John Stewart
·
#138
·
|
|
Re: Trying to move away from Finder...
Hey Phil,
Remember?
Type?
I keep stuff like that in my snippets library, so they're a couple of keystrokes away. :)
Still... Good to know.
--
Take Care,
Chris
Hey Phil,
Remember?
Type?
I keep stuff like that in my snippets library, so they're a couple of keystrokes away. :)
Still... Good to know.
--
Take Care,
Chris
|
By
Christopher Stone
·
#137
·
|