Select placeholder for images

Select placeholder for images

on newPresentation(themeName)
	tell application "Keynote"
		activate
		-- FIXME: Make this selectable?
		set targetWidth to 1024 -- 1440 <-- higher resolution
		set targetHeight to 768 -- 1080 <-- higher resolution

		set props to {document theme:theme (themeName as string), width:targetWidth, height:targetHeight}

		set thisDocument to make new document with properties props
		return name of thisDocument
	end tell
end newPresentation

on openPresentation(posixPath)
	tell application "Keynote"
		open posixPath
	end tell
end openPresentation

on savePresentation(docname, posixPath)
	tell application "Keynote"
		save document named docname in POSIX file posixPath
	end tell
end savePresentation

on createSlide(docname, masterSlideName)
	try
		tell application "Keynote"
			tell document named docname
				set thisSlide to make new slide with properties {base slide:master slide masterSlideName}
			end tell
	  return thisSlide
		end tell
	on error
		return 0
	end try
end createSlide

on deleteAllSlides(docname)
	tell application "Keynote"
		tell document named docname to delete every slide
	end tell
end deleteAllSlides

on finalize(docname)
	tell application "Keynote"
		tell document named docname to delete slide 1
	end tell
end finalize

on themeMasters(docname)
	--	  tell application "Keynote" to get the name of every master slide of thisDocument
	tell application "Keynote"
		set names to the name of every master slide of document named docname
		return names
	end tell
end themeMasters

on addImage(docname, n, filepath)
  (*
	FIXME: Use slide ID to adress slide instead of "current slide"
  *)
  tell application "Keynote"
	tell document named docname
		tell the current slide

			-- TO REPLACE A PLACEHOLDER OR EXISTING IMAGE:
			set thisPlaceholderImageItem to image n
			-- change the value of the “file name” property of the image to be an HFS file reference to the replacement image file
		set macPath to POSIX file filepath as Unicode text
			set file name of thisPlaceholderImageItem to ¬
				alias macPath

		end tell
	end tell
  end tell
end addImage

on addTitle(docname, thisSlideTitle)
  (*
	FIXME: Use slide ID to adress slide instead of "current slide"
  *)
	tell application "Keynote"
		tell document named docname
			tell the current slide
				if title showing is true then
					set the object text of the default title item to thisSlideTitle
				end if
			end tell
		end tell
	end tell
end addTitle

on addBody(docname, thisSlideBody)
  (*
	FIXME: Use slide ID to adress slide instead of "current slide"
  *)
	tell application "Keynote"
		tell document named docname
			tell the current slide
				if body showing is true then
					set the object text of the default body item to thisSlideBody
				end if
			end tell
		end tell
	end tell
end addTitle

on newPresentation(themeName)
	tell application "Keynote"
		activate
		-- FIXME: Make this selectable?
		set targetWidth to 1024 -- 1440 <-- higher resolution
		set targetHeight to 768 -- 1080 <-- higher resolution

		set props to {document theme:theme (themeName as string), width:targetWidth, height:targetHeight}

		set thisDocument to make new document with properties props
		return name of thisDocument
	end tell
end newPresentation

on openPresentation(posixPath)
	tell application "Keynote"
		open posixPath
	end tell
end openPresentation

on savePresentation(docname, posixPath)
	tell application "Keynote"
		save document named docname in POSIX file posixPath
	end tell
end savePresentation

on createSlide(docname, masterSlideName)
	try
		tell application "Keynote"
			tell document named docname
				set thisSlide to make new slide with properties {base slide:master slide masterSlideName}
			end tell
	  return thisSlide
		end tell
	on error
		return 0
	end try
end createSlide

on deleteAllSlides(docname)
	tell application "Keynote"
		tell document named docname to delete every slide
	end tell
end deleteAllSlides

on finalize(docname)
	tell application "Keynote"
		tell document named docname to delete slide 1
	end tell
end finalize

on themeMasters(docname)
	--	  tell application "Keynote" to get the name of every master slide of thisDocument
	tell application "Keynote"
		set names to the name of every master slide of document named docname
		return names
	end tell
end themeMasters

on addImage(docname, filepath)
  (*
	FIXME: Use slide ID to adress slide instead of "current slide"
  *)
  tell application "Keynote"
	tell document named docname
		tell the current slide

			-- TO REPLACE A PLACEHOLDER OR EXISTING IMAGE:
			set thisPlaceholderImageItem to image 1
			-- change the value of the “file name” property of the image to be an HFS file reference to the replacement image file
		set macPath to POSIX file filepath as Unicode text
			set file name of thisPlaceholderImageItem to ¬
				alias macPath

		end tell
	end tell
  end tell
end addImage

on addTitle(docname, thisSlideTitle)
  (*
	FIXME: Use slide ID to adress slide instead of "current slide"
  *)
	tell application "Keynote"
		tell document named docname
			tell the current slide
				if title showing is true then
					set the object text of the default title item to thisSlideTitle
				end if
			end tell
		end tell
	end tell
end addTitle

on addBody(docname, thisSlideBody)
  (*
	FIXME: Use slide ID to adress slide instead of "current slide"
  *)
	tell application "Keynote"
		tell document named docname
			tell the current slide
				if body showing is true then
					set the object text of the default body item to thisSlideBody
				end if
			end tell
		end tell
	end tell
end addTitle


launch instead of activate Excel

launch instead of activate Excel

#!/usr/bin/osascript
-- @see http://appscript.sourceforge.net/osascript.html

on run argv
  set start to current date

  -- Default arguments.
  set close_applications to true

  -- Parse command-line arguments and translate paths from `/path/to/file.ext`
  -- to `Macintosh HD:path:to:file.ext`.
  set input to POSIX file (item 1 of argv) as alias
  set output to POSIX file (item 2 of argv) as string
  if count of argv is 2 then set close_applications to false

  tell application "Preview"
    -- It seems Preview won't work if we `run` or `launch` it.
    activate
    open input
  end

  -- Preview is not fully scriptable.
  set the clipboard to ""
  tell application "System Events" to tell process "Preview"
    click menu item "Select All" of menu 1 of menu bar item "Edit" of menu bar 1
    click menu item "Copy" of menu 1 of menu bar item "Edit" of menu bar 1
  end tell
  if close_applications then tell application "Preview" to quit

  -- Yes, this is how to make AppleScript block.
  repeat
    try
      if (the clipboard) is not "" then
        -- One idea is to set a variable to the clipboard, in order to allow use
        -- of the clipboard by the user past this point. However, the clipboard
        -- to be complex based on the output of `return clipboard info`.
        exit repeat
      end if
    -- Calling `the clipboard` can sometimes cause an exception to be thrown,
    -- either due to race condition or software error. Not sure how to recover.
    -- Observed error codes are: -25130, -25132, -25133.
    -- @see http://search.cpan.org/~wyant/Mac-Pasteboard-0.002/lib/Mac/Pasteboard.pm#badPasteboardSyncErr
    -- @see http://search.cpan.org/~wyant/Mac-Pasteboard-0.002/lib/Mac/Pasteboard.pm#badPasteboardItemErr
    -- @see http://search.cpan.org/~wyant/Mac-Pasteboard-0.002/lib/Mac/Pasteboard.pm#badPasteboardFlavorErr
    on error error_message number error_number
      if {-25130, -25132, -25133} contains error_number
        error "Known error " & error_number & " occurred" number error_number
      else
        error error_message number error_number
      end if
    end try
  end repeat

  tell application "Microsoft Excel"
    launch
    make new workbook
    paste worksheet active sheet
    save workbook as active workbook filename output file format CSV file format overwrite yes
    close active workbook saving no
    if close_applications then quit
  end tell

  log "" & (current date - start) & " seconds"
end run

#!/usr/bin/osascript
-- @see http://appscript.sourceforge.net/osascript.html

on run argv
  set start to current date

  -- Default arguments.
  set close_applications to true

  -- Parse command-line arguments and translate paths from `/path/to/file.ext`
  -- to `Macintosh HD:path:to:file.ext`.
  set input to POSIX file (item 1 of argv) as alias
  set output to POSIX file (item 2 of argv) as string
  if count of argv is 2 then set close_applications to false

  tell application "Preview"
    activate
    open input
  end

  -- Preview is not fully scriptable.
  set the clipboard to ""
  tell application "System Events" to tell process "Preview"
    click menu item "Select All" of menu 1 of menu bar item "Edit" of menu bar 1
    click menu item "Copy" of menu 1 of menu bar item "Edit" of menu bar 1
  end tell
  if close_applications then tell application "Preview" to quit

  -- Yes, this is how to make AppleScript block.
  repeat
    try
      if (the clipboard) is not "" then
        -- One idea is to set a variable to the clipboard, in order to allow use
        -- of the clipboard by the user past this point. However, the clipboard
        -- to be complex based on the output of `return clipboard info`.
        exit repeat
      end if
    -- Calling `the clipboard` can sometimes cause an exception to be thrown,
    -- either due to race condition or software error. Not sure how to recover.
    -- Observed error codes are: -25130, -25132, -25133.
    -- @see http://search.cpan.org/~wyant/Mac-Pasteboard-0.002/lib/Mac/Pasteboard.pm#badPasteboardSyncErr
    -- @see http://search.cpan.org/~wyant/Mac-Pasteboard-0.002/lib/Mac/Pasteboard.pm#badPasteboardItemErr
    -- @see http://search.cpan.org/~wyant/Mac-Pasteboard-0.002/lib/Mac/Pasteboard.pm#badPasteboardFlavorErr
    on error error_message number error_number
      if {-25130, -25132, -25133} contains error_number
        error "Known error " & error_number & " occurred" number error_number
      else
        error error_message number error_number
      end if
    end try
  end repeat

  tell application "Microsoft Excel"
    activate
    make new workbook
    paste worksheet active sheet
    save workbook as active workbook filename output file format CSV file format overwrite yes
    close active workbook saving no
    if close_applications then quit
  end tell

  log "" & (current date - start) & " seconds"
end run


execute js with no side effect on Google Play Music page

on control(keyCode)
  set code to "(function (keyCode) {
    const event = new KeyboardEvent('keydown', { keyCode })
    document.dispatchEvent(event)
  })(" & keyCode & ")
  "

  set targetTab to activeTab() of me
  if targetTab is not null then
    executeJavaScript(targetTab, code) of me
  end if
end control

on getPlayState()
  set targetTab to activeTab() of me

  if targetTab is not null then
    set stateCode to "document.querySelector('#player-bar-play-pause').getAttribute('aria-label')"
    set oppositeState to executeJavaScript(targetTab, stateCode) of me

    if oppositeState is "Play" then
      return "Paused"
    else
      return "Playing"
    end if
  end if
end getPlayState

on getCurrentSong()
  set targetTab to activeTab() of me

  if targetTab is not null then
    set songCode to "document.querySelector('#currently-playing-title').innerHTML"
    set song to executeJavaScript(targetTab, songCode) of me

    set artistCode to "document.querySelector('.currently-playing-details').innerText"
    set artist to executeJavaScript(targetTab, artistCode) of me

    return {song, artist}
  end if
end getCurrentSong

on notifyCurrentSong()
  set songDetails to getCurrentSong() of me

  notify(item 1 of songDetails, item 2 of songDetails) of me
end notifyCurrentSong

on notify(name, message)
  display notification message with title name
end notify

on activeTab()
  set targetTab to null

  tell application "Google Chrome"
    repeat with theWindow in every window
      repeat with theTab in every tab of theWindow
        if theTab's title ends with "- Google Play Music" then
          set targetTab to theTab
          exit repeat
        end if
      end repeat
    end repeat
  end tell

  return targetTab
end activeTab

on executeJavaScript(activeTab, code)
  tell application "Google Chrome"
    return execute activeTab javascript code
  end tell
end executeJavaScript

on control(keyCode)
  set code to "var event = new KeyboardEvent('keydown', { keyCode: " & keyCode & " });
    document.dispatchEvent(event);
  "

  set targetTab to activeTab() of me
  if targetTab is not null then
    executeJavaScript(targetTab, code) of me
  end if
end control

on getPlayState()
  set targetTab to activeTab() of me

  if targetTab is not null then
    set stateCode to "document.querySelector('#player-bar-play-pause').getAttribute('aria-label')"
    set oppositeState to executeJavaScript(targetTab, stateCode) of me

    if oppositeState is "Play" then
      return "Paused"
    else
      return "Playing"
    end if
  end if
end getPlayState

on getCurrentSong()
  set targetTab to activeTab() of me

  if targetTab is not null then
    set songCode to "document.querySelector('#currently-playing-title').innerHTML"
    set song to executeJavaScript(targetTab, songCode) of me

    set artistCode to "document.querySelector('.currently-playing-details').innerText"
    set artist to executeJavaScript(targetTab, artistCode) of me

    return {song, artist}
  end if
end getCurrentSong

on notifyCurrentSong()
  set songDetails to getCurrentSong() of me

  notify(item 1 of songDetails, item 2 of songDetails) of me
end notifyCurrentSong

on notify(name, message)
  display notification message with title name
end notify

on activeTab()
  set targetTab to null

  tell application "Google Chrome"
    repeat with theWindow in every window
      repeat with theTab in every tab of theWindow
        if theTab's title ends with "- Google Play Music" then
          set targetTab to theTab
          exit repeat
        end if
      end repeat
    end repeat
  end tell

  return targetTab
end activeTab

on executeJavaScript(activeTab, code)
  tell application "Google Chrome"
    return execute activeTab javascript code
  end tell
end executeJavaScript


4.0.1 - made change recommended by jwillinghalpern to work with less-specific source XML

Scripts/fmClip - Wrap Set Field with If-Not-Same.applescript


actions don't have to have params

actions don't have to have params

FasdUAS 1.101.10
k
l
r
m

niji://
	o0uri

l"
V"
k

I

.sysodlogaskrTEXT
m
<Enter a "niji://" URI to test.

dtxt
o
0uri
r
n
1

ttxt
1

rslt
o0uri
I
.GURLGURLnullTEXT
 o0uri
m
boovtrue
!"
!l"#
#i$%
$I&
.GURLGURLnullTEXT
&o0uri
%k''()
(l*+* Decode URI+,, Decode URI)-.
-Q*/01
/r23
2n45
4767

ctxt
6l8
8[9:
9l	;
;I	<
.sysooffslongnull<=>

psof
=m??@@://>A

psin
Ao
0uri
:m
7m
5o0uri
3o0resource
0R
.ascrerr ********
1k"*BBCD
CI"'E
.sysonotfnullTEXT
Em"#FFGG*Malformed URI: Empty.DH
HL(*.IJ
Ir+6KL
KI+4M
.sysooffslongnullMNO

psof
Nm-.PPQQ?OR

psin
Ro/00resource
Lo0qJST
SZ7UVWX
U=7:YZ
Yo780q
Zm89
Vr=@[\
[o=>0resource
\o
0actionW]^
]=CF_`
_oCD0q
`mDE^a
akIQbbcd
cIINe
.sysonotfnullTEXT
emIJffgg2Malformed URI: No action.dh
hLOQ
XkTiijk
jrTclm
lnTano
n7Uapq

ctxt
pmY[
ql\`r
r\\`st
so]^0q
tm^_
ooTU0resource
mo
0actionkuv
uQdwxy
wrgvz{
zngt|}
|7ht~

ctxt
~llp
[lp
omn0q
mno
mqs
}ogh0resource
{o
0params
xR
.ascrerr ********
yr~
m~
o
0paramsv
r
m&
n
1

txdl
1

ascr
r
n
2

citm
o
0params
o0keyvals
r
m=
n
1

txdl
1

ascr
r
J
o0opts
Y
k
r
n
4

cobj
o0i
o0keyvals
o0kv
Q
s
n
2

citm
o0kv
J
o0k
o0v
R
.ascrerr ********
k
I
.sysonotfnullTEXT
b
b
m4Malformed URI parameter. (
o0kv
m)
L
r
I
.sysoexecTEXTTEXT
b
b
m0php -r 'echo urldecode("
o0v
m");'
o0decoded
r
b
o0opts
l
I
.sysodsct****scpt
b

b
b
b
m{|
o0k
m|:"
o0decoded
m	"}
o0opts0i
m
I~
.corecnte********
o}}0keyvals~|
r
m
n
1{
{
txdl
1z
z
ascr|T
lyxwyxw
lvv Select action Select actionu
Z
=$
o tt
0action
m #
apply
k'
l''ss  Check for required params4 Check for required params
Q'Y

k*A

r*1
n*/
o+/rr0cmd
o*+qq0opts
opp0_cmd
r29
n27
o37oo0name
o23nn0opts
omm	0_namel
r:A
n:?
o;?kk0yaml
o:;jj0opts
oii	0_yamll
Rhg
h.ascrerr ********
off0msgg
kIY  !"
!IIVe#d
e.sysonotfnullTEXT
#bIR$%
$bIN&'
&mIL(())>Missing a required parameter. (
'oLMcc0msg
%mNQ**++)d",b
,LWYaab	-.
-lZZ`_^`_^./0
/lZZ]12]1# Write yaml to temporary file233: Write yaml to temporary file045
4QZ678
6k]99:;
:r]r<=
<b]n>?
>l]j@\[
@I]jZAB
Z.earsffdralis afdr
Am]`Y
YafdrtempBXCW
X
rtyp
CmcfV
V
TEXTW\[
?mjmDDEEniji.yaml
=oUU0tmp;FT
FIsSGR
S.sysoexecTEXTTEXT
GbsHI
HbsJK
Jbs|LM
LmsvNNOO
echo
Mlv{PQP
Pnv{QR
Q1w{O
O
strq
RovwNN	0_yamlQP
Km|SSTT >
InUV
U1M
M
psxp
VoLL0tmpRT
7RKWJ
K.ascrerr ********
WoII0msgJ
8kXXYZ
YIH[G
H.sysonotfnullTEXT
[b\]
\b^_
^m``aaRFailed to write YAML to temporary file. (
_oFF0msg
]mbbcc)GZdE
dLDDE5ef
elCBACBAfgh
gl@ij@i
 Run zenbujkk Run zenbuhl?
lQmno
mkppqr
qI>s=
>.sysoexecTEXTTEXT
sbtu
tbvw
vbxy
xbz{
zm||}}bash -lc "
{o<<0_cmd
ym~~
wn
1;
;
psxp
o::0tmp
um"=r9
I87
8.sysonotfnullTEXT
b
b
mApplied "
o66	0_name
m".79
nR54
5.ascrerr ********
o330msg4
ok
I21
2.sysonotfnullTEXT
b
b
b
b
mFailed run `
o000_cmd
m`. (
o//0msg
m)1.
L--.?
=
o,,
0action
msave+
k
l**  Check for required params4 Check for required params
Q,
k
r
n
o))0root
o((0opts
o''	0_root
r
n

o
&&0name
o%%0opts
o$$	0_name#
r

n

o""0yaml
o
!!0opts
o  	0_yaml#
R
.ascrerr ********
o0msg
k,
I)
.sysonotfnullTEXT
b%
b!
m>Missing a required parameter. (
o 0msg
m!$)
L*,
l--
l--  Write yaml to destination4 Write yaml to destination
r->
b-:
b-6
b-4
o-0	0_root
m03/
o45	0_name
m69
.yaml
o0dest
Q?
kBg
IBW
.sysoexecTEXTTEXT
bBS
bBO
bBK
mBE
echo
lEJ

nEJ
1FJ

strq
oEF

	0_yaml

mKN >
oOR		0dest
IXg
.sysonotfnullTEXT
bXc
bX_
mX[Saved to "
o[^0dest
m_b".
R
.ascrerr ********
o0msg
ko

Io
.sysonotfnullTEXT
bo

bo|
boz
bov
mor2Failed to write YAML to "
oru0dest
mvy" file. (
oz{0msg
m|)
L+
I
.sysonotfnullTEXT
b
b
m!!""Action "
 o
0action
m##$$&" is not supported.u%&'(%
.GURLGURLnullTEXT
.aevtoappnull****0uri&%)*
.GURLGURLnullTEXT0uri)0uri0resource0q
0action
0params0keyvals0opts0i0kv0k0v0decoded0_cmd	0_name	0_yaml0msg0tmp	0_root0dest*G?FPf(*DNS`b|~!#

ctxt

psof

psin
.sysooffslongnull
.sysonotfnullTEXT

ascr

txdl

citm
.corecnte********

cobj
.sysoexecTEXTTEXT
.sysodsct****scpt0cmd0name0yaml0msg
afdrtemp

rtyp

TEXT
.earsffdralis afdr

strq

psxp0root[\[Z*m\Zi2EWXj	OhO*EOjEYݢk
j	OhY̡[\[Zk\Zk2EO[\[Zk\Zi2EW
XEO,FOa-EOa,FOjvEOxkjkha/EOa-E[ak/EQZ[al/EQZWXa%a%j	OhOa%a%jEOa%a%%a%j%E[OYOa,FOaa,EOa ,EOa!,EWX"a#%a$%j	OhO4a%a&a'l(a)%E^Oa*a+,%a,%]a-,%jWX"a.%a/%j	OhO,a0%a1%]a-,%a2%jOa3%a4%j	WX"a5%a6%%a7%j	OhYa8a9,E^Oa ,EOa!,EWX"a:%a;%j	OhO]a<%%a=%E^O*a>a+,%a?%]%jOa@]%aA%j	WX"aB]%aC%%aD%j	OhYaE%aF%j	'+,-
.aevtoappnull****
+k"..//,-
0uri

dtxt
.sysodlogaskrTEXT

rslt

ttxt
.GURLGURLnullTEXT#EOhelO,EOj[OY(00niji://apply?=1ascrޭ

FasdUAS 1.101.10
k
l
r
m

niji://
	o0uri

l"
V"
k

I

.sysodlogaskrTEXT
m
<Enter a "niji://" URI to test.

dtxt
o
0uri
r
n
1

ttxt
1

rslt
o0uri
I
.GURLGURLnullTEXT
 o0uri
m
boovtrue
!"
!l"#
#i$%
$I&
.GURLGURLnullTEXT
&o0uri
%k''()
(l*+* Decode URI+,, Decode URI)-.
-Q*/01
/r23
2n45
4767

ctxt
6l8
8[9:
9l	;
;I	<
.sysooffslongnull<=>

psof
=m??@@://>A

psin
Ao
0uri
:m
7m
5o0uri
3o0resource
0R
.ascrerr ********
1k"*BBCD
CI"'E
.sysonotfnullTEXT
Em"#FFGG*Malformed URI: Empty.DH
HL(*.IJ
Ir+6KL
KI+4M
.sysooffslongnullMNO

psof
Nm-.PPQQ?OR

psin
Ro/00resource
Lo0qJST
SZ7IUV
UA7:WX
Wo780q
Xm89
Vk=EYYZ[
ZI=B\
.sysonotfnullTEXT
\m=>]]^^2Malformed URI: No action.[_
_LCET`a
`rJYbc
bnJWde
d7KWfg

ctxt
fmOQ
glRVh
h\RVij
ioST0q
jmTU
eoJK0resource
co
0actionakl
kQZwmno
mr]lpq
pn]jrs
r7^jtu

ctxt
tlbfv
v[bfwx
wocd0q
xmde
umgi
so]^0resource
qo
0params
nR
.ascrerr ********
ortwyz
ymtu{{||
zo
0paramsl}~
}rx}
mxy&
n
1z|

txdl
1yz

ascr~
r~
n~
2

citm
o~
0params
o0keyvals
r
m=
n
1

txdl
1

ascr
r
J
o0opts
Y
k
r
n
4

cobj
o0i
o0keyvals
o0kv
Q
s
n
2

citm
o0kv
J
o0k
o0v
R
.ascrerr ********
I
.sysonotfnullTEXT
b
b
m4Malformed URI parameter. (
o0kv
m)
r
I
.sysoexecTEXTTEXT
b
b
m0php -r 'echo urldecode("
o0v
m");'
o0decoded
r
b
o0opts
l
I
.sysodsct****scpt
b
b
b
b
m{|
o0k
m|:"
o0decoded
m"}
o0opts0i
m
I
.corecnte********
o0keyvals
r

m

n
1

txdl
1

ascr
l~}~}
l|| Select action Select action{
Z
=
ozz
0action
m
apply
k
lyy  Check for required params4 Check for required params
QL
k4
r$
n"
o"xx0cmd
oww0opts
ovv0_cmd
r%,

	n%*
o&*uu0name
o%&tt0opts

oss	0_name
r

r-4
n-2
o.2qq0yaml
o-.pp0opts
ooo	0_yamlr
Rnm
n.ascrerr ********
oll0msgm
k<L
I<Ikj
k.sysonotfnullTEXT
b<E
b<A
m<?>Missing a required parameter. (
o?@ii0msg
mAD)jh
LJLggh !
 lMMfedfed!"#
"lMMc$%c$# Write yaml to temporary file%&&: Write yaml to temporary file#'(
'QM)*+
)kP,,-.
-rPe/0
/bPa12
1lP]3ba
3IP]`45
`.earsffdralis afdr
4mPS_
_afdrtemp5^6]
^
rtyp
6mVY\
\
TEXT]ba
2m]`7788niji.yaml
0o[[0tmp.9Z
9IfY:X
Y.sysoexecTEXTTEXT
:bf{;<
;bfs=>
=bfo?@
?mfiAABB
echo
@linCWV
CninDE
D1jnU
U
strq
EoijTT	0_yamlWV
>morFFGG >
<nszHI
H1vzS
S
psxp
IosvRR0tmpXZ
*RQJP
Q.ascrerr ********
JoOO0msgP
+kKKLM
LINNM
N.sysonotfnullTEXT
NbOP
ObQR
QmSSTTRFailed to write YAML to temporary file. (
RoLL0msg
PmUUVV)MMWK
WLJJK(XY
XlIHGIHGYZ[
ZlF\]F\
 Run zenbu]^^ Run zenbu[_E
_Q`ab
`kccde
dIDfC
D.sysoexecTEXTTEXT
fbgh
gbij
ibkl
kbmn
mmooppbash -lc "
noBB0_cmd
lmqqrr
jnst
s1A
A
psxp
to@@0tmp
hmuuvv"Cew?
wI>x=
>.sysonotfnullTEXT
xbyz
yb{|
{m}}~~Applied "
|o<<	0_name
zm".=?
aR;:
;.ascrerr ********
o990msg:
bk
I87
8.sysonotfnullTEXT
b
b
b
b
mFailed run `
o660_cmd
m`. (
o550msg
m)74
L334E
=
o22
0action
msave1
kz
l00  Check for required params4 Check for required params
Q
k
r
n
o//0root
o..0opts
o--	0_root
r
n
o,,0name
o++0opts
o**	0_name)
r
n
o((0yaml
o''0opts
o&&	0_yaml)
R%$
%.ascrerr ********
o##0msg$
k
I"!
".sysonotfnullTEXT
b
b
m>Missing a required parameter. (
o  0msg
m)!
L
l
l    Write yaml to destination4 Write yaml to destination
r 1
b -
b )
b '
o #	0_root
m#&/
o'(	0_name
m),
.yaml
o0dest
Q2z
k5Z
I5J
.sysoexecTEXTTEXT
b5F
b5B
b5>
m58
echo
l8=
n8=
19=

strq
o89	0_yaml
m>A >
oBE0dest
IKZ

.sysonotfnullTEXT
bKV
bKR
mKNSaved to "
oNQ0dest
mRU".
R

.ascrerr ********
o0msg
kbz
Ibw
.sysonotfnullTEXT
bbs
bbo
bbm
bbi
mbe		2Failed to write YAML to "
oeh0dest
mil

" file. (
omn0msg
mor

)
Lxz1
I}
.sysonotfnullTEXT
b}
b}
m}Action "
o
0action
m&" is not supported.{
.GURLGURLnullTEXT
.aevtoappnull****%
.GURLGURLnullTEXT0uri0uri0resource0q
0action
0params0keyvals0opts0i0kv0k0v0decoded0_cmd	0_name	0_yaml0msg0tmp	0_root0destG?FP]{7AFSUoqu}

ctxt

psof

psin
.sysooffslongnull
.sysonotfnullTEXT

ascr

txdl

citm
.corecnte********

cobj
.sysoexecTEXTTEXT
.sysodsct****scpt0cmd0name0yaml0msg
afdrtemp

rtyp

TEXT
.earsffdralis afdr

strq

psxp0root[\[Z*m\Zi2EWXj	OhO*EOl
j	OhYhO[\[Zk\Zk2EO[\[Zk\Zi2EW
XEO,FOa-EOa,FOjvEOukjkha/EOa-E[ak/EQZ[al/EQZWXa%a%j	Oa%a%jEOa%a%%a%j%E[OYOa,FOaa,EOa ,EOa!,EWX"a#%a$%j	OhO4a%a&a'l(a)%E^Oa*a+,%a,%]a-,%jWX"a.%a/%j	OhO,a0%a1%]a-,%a2%jOa3%a4%j	WX"a5%a6%%a7%j	OhYa8a9,E^Oa ,EOa!,EWX"a:%a;%j	OhO]a<%%a=%E^O*a>a+,%a?%]%jOa@]%aA%j	WX"aB]%aC%%aD%j	OhYaE%aF%j
.aevtoappnull****
k"  !!
0uri

dtxt
.sysodlogaskrTEXT

rslt

ttxt
.GURLGURLnullTEXT#EOhelO,EOj[OYascr
ޭ