trying to get tests working

trying to get tests working

FasdUAS 1.101.10
k
l& # Current Alfred-Bundler version		@# Current Alfred-Bundler version

j"0bundler_versionBUNDLER_VERSION
m

devel
l%# Path to user's home directory># Path to user's home directory
j	0_home
n

1

psxp
l

I

.earsffdralis afdr
mcusr

rtyp
m

ctxt
l!"!/)# Path to Alfred-Bundler's root directory"##R# Path to Alfred-Bundler's root directory $%
$j&0bundler_dirBUNDLER_DIR
&b'(
'b)*
)l+
+o	0_home
*m,,--Library/Application Support/Alfred 2/Workflow Data/alfred.bundler-
(o"0bundler_versionBUNDLER_VERSION%./
.j00	cache_dir	CACHE_DIR
0b12
1b34
3l5
5o	0_home
4m6677Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/alfred.bundler-
2o"0bundler_versionBUNDLER_VERSION/89
8l9:;
:l;<=
<l>?> MAIN API FUNCTION ?@@& MAIN API FUNCTION =AB
AlBCD
Ci EF
EI0load_bundler
Fk/GGHI
HlJKJ Load `AlfredBundler.scpt` from the Alfred-Bundler directory as a script object.
	If the Alfred-Bundler directory does not exist, install it (using `_bootstrap()`).

	:returns: the script object of `AlfredBundler.scpt`
	:rtype: ``script object``

	KLL Load `AlfredBundler.scpt` from the Alfred-Bundler directory as a script object.
	If the Alfred-Bundler directory does not exist, install it (using `_bootstrap()`).

	:returns: the script object of `AlfredBundler.scpt`
	:rtype: ``script object``

	IMN
MlOPO,&# Check if Alfred-Bundler is installedPQQL# Check if Alfred-Bundler is installedNRS
RZTU
T>VW
Vl
X
Xn
YZ
YI
[0_folder_exists[\
\o0bundler_dirBUNDLER_DIR
Zf
Wm

boovtrue
Uk]]^_
^l`a`# install it if notabb&# install it if not_c
cnde
dI0
_bootstrap
efSfg
fIh
.sysodelanullnmbr
hmii?gjk
jllml?9# Path to `AlfredBundler.scpt` in Alfed-Bundler directorymnnr# Path to `AlfredBundler.scpt` in Alfed-Bundler directorykop
or(qr
ql&s
sb&tu
to$0bundler_dirBUNDLER_DIR
um$%vvww6/bundler/AlfredBundler.scpt
ro0
as_bundlerpxy
xl))z{z# Return script object{||,# Return script objecty}
}L)/~
~I).
.sysoloadscptfile
o)*0
as_bundlerD
l
l AUTO-DOWNLOAD BUNDLER . AUTO-DOWNLOAD BUNDLER
l
i!$
I0
_bootstrap
k
l`Z Check if bundler bash bundlet is installed and install it if not.

	:returns: ``None``

	 Check if bundler bash bundlet is installed and install it if not.

	:returns: ``None``

l"# Ask to install the Bundler8# Ask to install the Bundler
Q
n
I0_install_confirmation
f
R
.ascrerr ********
k
l71# Cannot continue to install the bundler, so stopb# Cannot continue to install the bundler, so stop
L
m
boovfals
l# Download the bundler,# Download the bundler
r)
J'
b
b
mhhttps://github.com/shawnrice/alfred-bundler/archive/
o"0bundler_versionBUNDLER_VERSION
m.zip
b%
b#
mfhttps://bitbucket.org/shawnrice/alfred-bundler/get/
o""0bundler_versionBUNDLER_VERSION
m#$.zip
o0urlsURLs
l**@:# Save Alfred-Bundler zipfile to this location temporarilyt# Save Alfred-Bundler zipfile to this location temporarily
r*5
b*3
l*1
n*1
1/1

strq
o*/0	cache_dir	CACHE_DIR
m12,/installer/bundler.zip
o0_zipfile
X6h
kFc
rFU
lFS
IFS
.sysoexecTEXTTEXT
bFO
bFM
bFK
bFI
mFGZcurl -fsSL --create-dirs --connect-timeout 5
oGH0_url
mIJ -o
oKL0_zipfile
mMN && echo $?
o0_status
ZVc
=V[
oVW0_status
mWZ0
S^_0_url
o9:0urlsURLs
lii## Could not download the file:# Could not download the file
Zi
>in
oij0_status
mjm0
Rq}
.ascrerr ********
my|NCould not download bundler install file

errn
mux
l	LF# Ensure directory tree already exists for bundler to be moved into it

# Ensure directory tree already exists for bundler to be moved into it
n

I0
_check_dir
o0bundler_dirBUNDLER_DIR
f
l;5# Unzip the bundler and move it to its data directoryj# Unzip the bundler and move it to its data directory
r
b
b
b
m  !!cd
l"
"n#$
#1

strq
$o0	cache_dir	CACHE_DIR
m%%&&l; cd installer; unzip -qo bundler.zip; mv ./*/bundler
l'
'n()
(1~
~
strq
)o}}0bundler_dirBUNDLER_DIR
o||0_cmd*+
*I{,z
{.sysoexecTEXTTEXT
,oyy0_cmdz+-.
-lx/0x/QK# Wait until bundler is fully unzipped and written to disk before finishing011# Wait until bundler is fully unzipped and written to disk before finishing.23
2r45
4l6wv
6b78
7ouu0bundler_dirBUNDLER_DIR
8m99::6/bundler/AlfredBundler.scptwv
5ott0
as_bundler3;<
;V=>
=Is?r
s.sysodelanullnmbr
?m@@?ər
>HA
AlBqp
BnCD
CIoEno0_path_existsEFm
Foll0
as_bundlermn
Dfqp<GH
GOIJ
IIkKj
k.coredeloobj obj
KlLih
LcMN
M4gO
g
psxf
Ooff0	cache_dir	CACHE_DIR
Nme
e
alisihj
JmPPMACSalistMacintosh HDH+ҍK
Finder.appԲY`	 CoreServices*`DҍKҍHҍG6Macintosh HD:System:Library:CoreServices:Finder.app
Finder.appMacintosh HD&System/Library/CoreServices/Finder.app/HQd
QLccdRS
Rlba`ba`STU
Tl_VW_V;5# Function to get confirmation to install the bundlerWXXj# Function to get confirmation to install the bundlerUYZ
Yi%([\
[I^]\^0_install_confirmation]\
\k]]^_
^l[`a[` Ask user for permission to install Alfred-Bundler.
	Allow user to go to website for more information, or even to cancel download.

	:returns: ``True`` or raises Error

	abbV Ask user for permission to install Alfred-Bundler.
	Allow user to go to website for more information, or even to cancel download.

	:returns: ``True`` or raises Error

	_cd
clZefZe0*# Get path to workflow's `info.plist` filefggT# Get path to workflow's `info.plist` filedhi
hr	jk
jblm
lnno
nIYXWY0_pwdXW
of
mmppqqinfo.plist
koVV
0_plistirs
rl

UtuUt5/# Get name of workflow's from `info.plist` fileuvv^# Get name of workflow's from `info.plist` fileswx
wr
yz
yb
{|
{b

}~
}m
T/usr/libexec/PlistBuddy -c 'Print :name' '
~oTT
0_plist
|m
'
zoSS0_cmdx
r
IRQ
R.sysoexecTEXTTEXT
oPP0_cmdQ
oOO	0_name
lNN60# Get workflow's icon, or default to system icon`# Get workflow's icon, or default to system icon
r#
b!
n
IMLKM0_pwdLK
f
m icon.png
oJJ	0_icon
r$,
n$*
I%*IHI0_check_iconG
o%&FF	0_iconGH
f$%
oEE	0_icon
l--DD/)# Prepare explanation text for dialog boxR# Prepare explanation text for dialog box
r-6
b-4
b-2
b-0
o-.CC	0_name
m./ needs to install additional components, which will be placed in the Alfred storage directory and will not interfere with your system.

You may be asked to allow some components to run, depending on your security settings.

You can decline this installation, but
o01BB	0_name
m23 may not work without them. There will be a slight delay after accepting.
oAA	0_text
l77@?>@?>
r7Y
n7W
1SW=
=
bhit
l7S<;
I7S:
:.sysodlogaskrTEXT
o7899	0_text8
8
btns
J9>
m9:More Info
m:;Cancel7
m;<Proceed76
6
dflt
m?@554
4
appr
bAD
mABSetup
oBC33	0_name21
2
disp
4GM0
0
psxf
oKL//	0_icon1<;
o..
0	_response
lZZ--0*# If permission granted, continue downloadT# If permission granted, continue download
ZZh,+
=Z_
oZ[**
0	_response
m[^Proceed
Lbd
mbc)
)boovtrue,+
lii((60# If more info requested, open webpage and error`# If more info requested, open webpage and error
Zi'&
=in
oij%%
0	_response
mjmMore Info
kq
Oq
Iw~$#
$.GURLGURLnullTEXT
mwzhttps://github.com/shawnrice/alfred-bundler/wiki/What-is-the-Alfred-Bundler#
mqtsevsalisMacintosh HDH+ҍKSystem Events.appU'A	 CoreServices*A9ҍKҍHҍG=Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/"
R!
!.ascrerr ********
mFUser looked sought more information

errn
m"'&
l,&# If permission denied, stop and errorL# If permission denied, stop and error
Z
=
o
0	_response
m

Cancel
R
.ascrerr ********
m

4User canceled installation

errn
mZ
l
l
l HELPER HANDLERS " HELPER HANDLERS
l

i),
I

0_pwd
k8 !
 l"#" Get path to "present working directory", i.e. the workflow's root directory.

	:returns: Path to this script's parent directory
	:rtype: ``string`` (POSIX path)

	#$$J Get path to "present working directory", i.e. the workflow's root directory.

	:returns: Path to this script's parent directory
	:rtype: ``string`` (POSIX path)

	!%&
%l'('=7# Save default AS delimiters, and set delimiters to "/"())n# Save default AS delimiters, and set delimiters to "/"&*+
*r,-
,J../0
/n12
11

txdl
21

ascr03
3m4455/
-J6678
7o0astidASTID89
9n:;
:1

txdl
;1

ascr+<=
<l>?>,&# Get POSIX path of script's directory?@@L# Get POSIX path of script's directory=AB
Ar/CD
Cb-EF
El+G
Gc+HI
Hn)JK
J7)LM

citm
Lm#%
Mm&(
KlN
NnOP
O1

psxp
PlQ
QIR
.earsffdralis afdr
Rf
Im)*

TEXT
Fm+,SSTT/
Do	0_pathBUV
Ul00WXW.(# Reset AS delimiters to original valuesXYYP# Reset AS delimiters to original valuesVZ[
Zr05\]
\o010astidASTID
]n^_
^124

txdl
_112

ascr[`
`L68a
ao67	0_pathbc
blcde
di-0fg
fIh0_prepare_cmdhi
io0_cmd
gkjjkl
klmnm,& Ensure shell `_cmd` is working from the property directory.
	For testing purposes, it also sets the `AB_BRANCH` environmental variable.

	:param _cmd: Shell command to be run in `do shell script`
	:type _cmd: ``string``
	:returns: Shell command with `pwd` set properly
	:rtype: ``string``

	nooL Ensure shell `_cmd` is working from the property directory.
	For testing purposes, it also sets the `AB_BRANCH` environmental variable.

	:param _cmd: Shell command to be run in `do shell script`
	:type _cmd: ``string``
	:returns: Shell command with `pwd` set properly
	:rtype: ``string``

	lpq
plrsr93# Ensure `pwd` is properly quoted for shell commandsttf# Ensure `pwd` is properly quoted for shell commandquv
ur	wx
wnyz
y1

strq
zl{
{n|}
|I0_pwd
}f
xo0pwdv~
~l

& # Declare environmental variable@# Declare environmental variable
l

%#TODO: remove for final release>#TODO: remove for final release
r

m
0export AB_BRANCH=devel;
o0testing_var
l71# return shell script where `pwd` is properly setb# return shell script where `pwd` is properly set
L
b
b
b
b
o0testing_var
mcd
o0pwd
m; bash
o0_cmde
l
i14
I0_check_icon
o	0_icon
k
l Check if `_icon` exists, and if not revert to system download icon.

	:returns: POSIX path to `_icon`
	:rtype: ``string`` (POSIX path)

	 Check if `_icon` exists, and if not revert to system download icon.

	:returns: POSIX path to `_icon`
	:rtype: ``string`` (POSIX path)

Q
k
c
4

psxf
o	0_icon
m

alis
L

o
	0_icon
R
.ascrerr ********
L
m/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/SidebarDownloadsFolder.icns
l
i58
I0
_check_dir
o0_folder
k
l Check if `_folder` exists, and if not create it, including any sub-directories.

	:returns: POSIX path to `_folder`
	:rtype: ``string`` (POSIX path)

	0 Check if `_folder` exists, and if not create it, including any sub-directories.

	:returns: POSIX path to `_folder`
	:rtype: ``string`` (POSIX path)

Z
H
n
I0_folder_exists
o0_folder
f
I

.sysoexecTEXTTEXT
b

m
mkdir -p
l
n
1

strq
o0_folder
L
o0_folder
l
l
i9<
I0_folder_exists
o0_folder
k
l Return ``true`` if `_folder` exists, else ``false``

	:param _folder: Full path to directory
	:type _folder: ``string`` (POSIX path)
	:returns: ``Boolean``

	> Return ``true`` if `_folder` exists, else ``false``

	:param _folder: Full path to directory
	:type _folder: ``string`` (POSIX path)
	:returns: ``Boolean``

Z
n
I0_path_exists
o0_folder
f
O
L

l

=

n

m

pcls
l

4

ditm
o0_folder
m

cfol
m
sevsalisMacintosh HDH+ҍKSystem Events.appU'A	 CoreServices*A9ҍKҍHҍG=Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
L
m
boovfals
l
i=@
I
0_path_exists

o	0_path
	kY

l Return ``true`` if `_path` exists, else ``false``

	:param _path: Any POSIX path (file or folder)
	:type _path: ``string`` (POSIX path)
	:returns: ``Boolean``

	D Return ``true`` if `_path` exists, else ``false``

	:param _path: Any POSIX path (file or folder)
	:type _path: ``string`` (POSIX path)
	:returns: ``Boolean``

Z
G
=
o	0_path
m

msng
n
I
0	_is_empty
o	0_path
f
L
m
boovfals~
QY !"
 kO##$%
$Z)&'}|
&= ()
(n*+
*m{
{
pcls
+ozz	0_path
)my
y
alis
'L#%,
,m#$x
xboovtrue}|%-w
-Z*O./01
.E*-23
2o*+vv	0_path
3m+,4455:
/k086678
7405u9
u
alis
9o23tt	0_path8:s
:L68;
;m67r
rboovtrues0<=
<E;>>?
>o;<qq	0_path
?m<=@@AA/=Bp
BkAJCCDE
DcAGFG
F4AEoH
o
psxf
HoCDnn	0_path
GmEFm
m
alisEIl
ILHJJ
JmHIk
kboovtruelp
1LMOK
KmMNj
jboovfalsw
!RiLh
i.ascrerr ********
Logg0msgh
"LWYM
MmWXf
fboovfals~NO
NledcedcOPQ
PiADRS
RIbTab
0	_is_emptyTU`
Uo__0_obj`a
Sk(VVWX
Wl^YZ^Y Return ``true`` if `_obj ` is empty, else ``false``

	:param _obj: Any Applescript type
	:type _obj: (optional)
	:returns: ``Boolean``

	Z[[ Return ``true`` if `_obj ` is empty, else ``false``

	:param _obj: Any Applescript type
	:type _obj: (optional)
	:returns: ``Boolean``

	X\]
\l]^_]^!# Is `_obj ` a ``Boolean``?_``6# Is `_obj ` a ``Boolean``?]ab
aZcd\[
cEef
eJgghi
hmZ
ZboovtrueijY
jmX
XboovfalsY
foWW0_obj
dL	k
km
V
Vboovfals\[blm
llUnoUn'!# Is `_obj ` a ``missing value``?oppB# Is `_obj ` a ``missing value``?mqr
qZstTS
s=uv
uoRR0_obj
vmQ
Q
msng
tLw
wmP
PboovtrueTSrxy
xlOz{Oz"# Is `_obj ` a empty string?{||8# Is `_obj ` a empty string?y}N
}L(~
~='
n%
1#%M
M
leng
l#LK
n#
I#JIJ	0_trimH
oGG0_objHI
fLK
m%&FFNQ
lEDCEDCB
iEH
IA@A	0_trim?
o>>0_str?@
k
l== Remove white space from beginning and end of `_str`

	:param _str: A text string
	:type _str: ``string``
	:returns: trimmed string

	 Remove white space from beginning and end of `_str`

	:param _str: A text string
	:type _str: ``string``
	:returns: trimmed string

Z <;
G
G
>
n
m:
:
pcls
o990_str
m8
8
ctxt
>

n
m	7
7
pcls
o	660_str
m5
5
TEXT
=
o440_str
m3
3
msng
L
o220_str<;
Z!-10
=!$
o!"//0_str
m"#
L')
o'(..0_str10
V.W
Q6R
r9H
c9F
n9D
7:D-
-
cobj
m>@,,
mAC++
o9:**0_str
mDE)
)
ctxt
o((0_str
R'&
'.ascrerr ********
o%%0msg&
LPR
mPQ
C25
o23$$0_str
m34
VX
Q`|
rcr
ccp
ncn
7dn#
#
cobj
mhj""
mkm!!
ocd  0_str
mno

ctxt
o0_str
R
.ascrerr ********
Lz|
mz{
D\_
o\]0_str
m]^
L
o0_strB

	"0bundler_versionBUNDLER_VERSION	0_home0bundler_dirBUNDLER_DIR0	cache_dir	CACHE_DIR0load_bundler0
_bootstrap0_install_confirmation0_pwd0_prepare_cmd
0_check_icon0
_check_dir0_folder_exists
0_path_exists
0	_is_empty	0_trim"/Users/smargheim//Users/smargheim/Library/Application Support/Alfred 2/Workflow Data/alfred.bundler-devel/Users/smargheim/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/alfred.bundler-develF0load_bundler0
as_bundleriv0_folder_exists0
_bootstrap
.sysodelanullnmbr
.sysoloadscptfile0)bk+e
)j+YhOjOb%EOj0
_bootstrap0urlsURLs0_zipfile0_url0_status0_cmd0
as_bundler  %9@P0_install_confirmation

strq

kocl

cobj
.corecnte********
.sysoexecTEXTTEXT

errn0
_check_dir0_path_exists
.sysodelanullnmbr

psxf

alis
.coredeloobj obj
)j+W	XfOb%%b%%lvEOb,%EO1[lkh%%%%jEOaYh[OYOa)aalaYhO)bk+Oab,%a%b,%EOjOba%EOh)k+ajYOa*ab/a&jUOh\0_install_confirmation
0_plist0_cmd	0_name	0_icon	0_text
0	_responsep
0_pwd
.sysoexecTEXTTEXT0_check_icon

btns

dflt

appr

disp

psxf
.sysodlogaskrTEXT

bhit
.GURLGURLnullTEXT

errn)j+%EO%%EOjEO)j+%EO)k+EO%%%EOmvm%a*a/aa,EOaeYhOa a	ajUO)aalaYhOa)aalaYh0_pwd0astidASTID	0_path
4S

ascr

txdl

cobj
.earsffdralis afdr

psxp

citm

TEXT9,lvE[k/EZ[l/,FZO)j,[\[Zk\Z2&%EO,FOg0_prepare_cmd0_cmd0_cmd0pwd0testing_var0_pwd

strq)j+,EOEO%%%%0_check_icon	0_icon	0_icon

psxf

alis*/&OW	X0
_check_dir0_folder0_folder0_folder_exists

strq
.sysoexecTEXTTEXT)k+,%jYhO0_folder_exists0_folder0_folder0_path_exists

ditm

pcls

cfol)k+*/,UYhOf	0_path_exists	0_path	0_path0msg
4@

msng
0	_is_empty

bool

pcls

alis

psxf0msgZ

)k+&fYhO9,eYhO
*/EOeY*/&OeYfW	X	fS

0	_is_empty~~0_obj	}}0_obj
|{z
|
msng{	0_trim
z
leng)eflvfYhOeYhO)k+,jyxw
vy	0_trimxuutt0_strwsrs0_strr0msg
qponmlkjih
q
pcls
p
ctxt
o
TEXT
n
bool
m
msng
l
cobjk0msgjihv,
	,&
&YhOYhO(h[\[Zl\Zi2&EW	X	[OYO(h[\[Zk\Z2&EW	X
	[OYOascrޭ

FasdUAS 1.101.10
k
l& # Current Alfred-Bundler version		@# Current Alfred-Bundler version

j"0bundler_versionBUNDLER_VERSION
m

devel
l%# Path to user's home directory># Path to user's home directory
j	0_home
n

1

psxp
l

I

.earsffdralis afdr
mcusr

rtyp
m

ctxt
l!"!/)# Path to Alfred-Bundler's root directory"##R# Path to Alfred-Bundler's root directory $%
$j&0bundler_dirBUNDLER_DIR
&b'(
'b)*
)l+
+o	0_home
*m,,--Library/Application Support/Alfred 2/Workflow Data/alfred.bundler-
(o"0bundler_versionBUNDLER_VERSION%./
.j00	cache_dir	CACHE_DIR
0b12
1b34
3l5
5o	0_home
4m6677Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/alfred.bundler-
2o"0bundler_versionBUNDLER_VERSION/89
8l9:;
:l<
<o0	cache_dir	CACHE_DIR;=>
=l?@? MAIN API FUNCTION @AA& MAIN API FUNCTION >BC
BlCDE
Di FG
FI0load_bundler
Gk/HHIJ
IlKLK Load `AlfredBundler.scpt` from the Alfred-Bundler directory as a script object.
	If the Alfred-Bundler directory does not exist, install it (using `_bootstrap()`).

	:returns: the script object of `AlfredBundler.scpt`
	:rtype: ``script object``

	LMM Load `AlfredBundler.scpt` from the Alfred-Bundler directory as a script object.
	If the Alfred-Bundler directory does not exist, install it (using `_bootstrap()`).

	:returns: the script object of `AlfredBundler.scpt`
	:rtype: ``script object``

	JNO
NlPQP,&# Check if Alfred-Bundler is installedQRRL# Check if Alfred-Bundler is installedOST
SZUV
U>WX
Wl
Y
Yn
Z[
ZI
\0_folder_exists\]
]o0bundler_dirBUNDLER_DIR
[f
Xm

boovtrue
Vk^^_`
_laba# install it if notbcc&# install it if not`d
dnef
eI0
_bootstrap
ffTgh
gIi
.sysodelanullnmbr
imjj?hkl
klmnm?9# Path to `AlfredBundler.scpt` in Alfed-Bundler directorynoor# Path to `AlfredBundler.scpt` in Alfed-Bundler directorylpq
pr(rs
rl&t
tb&uv
uo$0bundler_dirBUNDLER_DIR
vm$%wwxx6/bundler/AlfredBundler.scpt
so0
as_bundlerqyz
yl)){|{# Return script object|}},# Return script objectz~
~L)/
I).
.sysoloadscptfile
o)*0
as_bundlerE
l
l AUTO-DOWNLOAD BUNDLER . AUTO-DOWNLOAD BUNDLER
l
i!$
I0
_bootstrap
k
l`Z Check if bundler bash bundlet is installed and install it if not.

	:returns: ``None``

	 Check if bundler bash bundlet is installed and install it if not.

	:returns: ``None``

l"# Ask to install the Bundler8# Ask to install the Bundler
Q
n
I0_install_confirmation
f
R
.ascrerr ********
k
l71# Cannot continue to install the bundler, so stopb# Cannot continue to install the bundler, so stop
L
m
boovfals
l# Download the bundler,# Download the bundler
r)
J'
b
b
mhhttps://github.com/shawnrice/alfred-bundler/archive/
o"0bundler_versionBUNDLER_VERSION
m.zip
b%
b#
mfhttps://bitbucket.org/shawnrice/alfred-bundler/get/
o""0bundler_versionBUNDLER_VERSION
m#$.zip
o0urlsURLs
l**@:# Save Alfred-Bundler zipfile to this location temporarilyt# Save Alfred-Bundler zipfile to this location temporarily
r*5
b*3
l*1
n*1
1/1

strq
o*/0	cache_dir	CACHE_DIR
m12,/installer/bundler.zip
o0_zipfile
X6h
kFc
rFU
lFS
IFS
.sysoexecTEXTTEXT
bFO
bFM
bFK
bFI
mFGZcurl -fsSL --create-dirs --connect-timeout 5
oGH0_url
mIJ -o
oKL0_zipfile
mMN && echo $?
o0_status
ZVc
=V[
oVW0_status
mWZ0
S^_0_url
o9:0urlsURLs
lii## Could not download the file:# Could not download the file
Zi
>in
oij0_status
mjm0
Rq}
.ascrerr ********
my|NCould not download bundler install file

errn
mux
l
	LF# Ensure directory tree already exists for bundler to be moved into it
# Ensure directory tree already exists for bundler to be moved into it

n
I0
_check_dir
o0bundler_dirBUNDLER_DIR
f

l;5# Unzip the bundler and move it to its data directoryj# Unzip the bundler and move it to its data directory
r
b
b
b
m!!""cd
 l#
#n$%
$1

strq
%o0	cache_dir	CACHE_DIR
m&&''l; cd installer; unzip -qo bundler.zip; mv ./*/bundler
l(
(n)*
)1~
~
strq
*o}}0bundler_dirBUNDLER_DIR
o||0_cmd+,
+I{-z
{.sysoexecTEXTTEXT
-oyy0_cmdz,./
.lx01x0QK# Wait until bundler is fully unzipped and written to disk before finishing122# Wait until bundler is fully unzipped and written to disk before finishing/34
3r56
5l7wv
7b89
8ouu0bundler_dirBUNDLER_DIR
9m::;;6/bundler/AlfredBundler.scptwv
6ott0
as_bundler4<=
<V>?
>Is@r
s.sysodelanullnmbr
@mAA?ər
?HB
BlCqp
CnDE
DIoFno0_path_existsFGm
Goll0
as_bundlermn
Efqp=HI
HOJK
JIkLj
k.coredeloobj obj
LlMih
McNO
N4gP
g
psxf
Poff0	cache_dir	CACHE_DIR
Ome
e
alisihj
KmQQMACSalistMacintosh HDH+ҍK
Finder.appԲY`	 CoreServices*`DҍKҍHҍG6Macintosh HD:System:Library:CoreServices:Finder.app
Finder.appMacintosh HD&System/Library/CoreServices/Finder.app/IRd
RLccdST
Slba`ba`TUV
Ul_WX_W;5# Function to get confirmation to install the bundlerXYYj# Function to get confirmation to install the bundlerVZ[
Zi%(\]
\I^]\^0_install_confirmation]\
]k^^_`
_l[ab[a Ask user for permission to install Alfred-Bundler.
	Allow user to go to website for more information, or even to cancel download.

	:returns: ``True`` or raises Error

	bccV Ask user for permission to install Alfred-Bundler.
	Allow user to go to website for more information, or even to cancel download.

	:returns: ``True`` or raises Error

	`de
dlZfgZf0*# Get path to workflow's `info.plist` fileghhT# Get path to workflow's `info.plist` fileeij
ir	kl
kbmn
mnop
oIYXWY0_pwdXW
pf
nmqqrrinfo.plist
loVV
0_plistjst
sl

UuvUu5/# Get name of workflow's from `info.plist` filevww^# Get name of workflow's from `info.plist` filetxy
xr
z{
zb
|}
|b

~
~m
T/usr/libexec/PlistBuddy -c 'Print :name' '
oTT
0_plist
}m
'
{oSS0_cmdy
r
IRQ
R.sysoexecTEXTTEXT
oPP0_cmdQ
oOO	0_name
lNN60# Get workflow's icon, or default to system icon`# Get workflow's icon, or default to system icon
r#
b!
n
IMLKM0_pwdLK
f
m icon.png
oJJ	0_icon
r$,
n$*
I%*IHI0_check_iconG
o%&FF	0_iconGH
f$%
oEE	0_icon
l--DD/)# Prepare explanation text for dialog boxR# Prepare explanation text for dialog box
r-6
b-4
b-2
b-0
o-.CC	0_name
m./ needs to install additional components, which will be placed in the Alfred storage directory and will not interfere with your system.

You may be asked to allow some components to run, depending on your security settings.

You can decline this installation, but
o01BB	0_name
m23 may not work without them. There will be a slight delay after accepting.
oAA	0_text
l77@?>@?>
r7Y
n7W
1SW=
=
bhit
l7S<;
I7S:
:.sysodlogaskrTEXT
o7899	0_text8
8
btns
J9>
m9:More Info
m:;Cancel7
m;<Proceed76
6
dflt
m?@554
4
appr
bAD
mABSetup
oBC33	0_name21
2
disp
4GM0
0
psxf
oKL//	0_icon1<;
o..
0	_response
lZZ--0*# If permission granted, continue downloadT# If permission granted, continue download
ZZh,+
=Z_
oZ[**
0	_response
m[^Proceed
Lbd
mbc)
)boovtrue,+
lii((60# If more info requested, open webpage and error`# If more info requested, open webpage and error
Zi'&
=in
oij%%
0	_response
mjmMore Info
kq
Oq
Iw~$#
$.GURLGURLnullTEXT
mwzhttps://github.com/shawnrice/alfred-bundler/wiki/What-is-the-Alfred-Bundler#
mqtsevsalisMacintosh HDH+ҍKSystem Events.appU'A	 CoreServices*A9ҍKҍHҍG=Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/"
R!
!.ascrerr ********
mFUser looked sought more information

errn
m"'&
l,&# If permission denied, stop and errorL# If permission denied, stop and error
Z
=
o
0	_response
	m

Cancel
R
.ascrerr ********
m4User canceled installation

errn
m[
l
l
l HELPER HANDLERS " HELPER HANDLERS
l

i),
I

0_pwd
k8  !"
!l#$# Get path to "present working directory", i.e. the workflow's root directory.

	:returns: Path to this script's parent directory
	:rtype: ``string`` (POSIX path)

	$%%J Get path to "present working directory", i.e. the workflow's root directory.

	:returns: Path to this script's parent directory
	:rtype: ``string`` (POSIX path)

	"&'
&l()(=7# Save default AS delimiters, and set delimiters to "/")**n# Save default AS delimiters, and set delimiters to "/"'+,
+r-.
-J//01
0n23
21

txdl
31

ascr14
4m5566/
.J7789
8o0astidASTID9:
:n;<
;1

txdl
<1

ascr,=>
=l?@?,&# Get POSIX path of script's directory@AAL# Get POSIX path of script's directory>BC
Br/DE
Db-FG
Fl+H
Hc+IJ
In)KL
K7)MN

citm
Mm#%
Nm&(
LlO
OnPQ
P1

psxp
QlR
RIS
.earsffdralis afdr
Sf
Jm)*

TEXT
Gm+,TTUU/
Eo	0_pathCVW
Vl00XYX.(# Reset AS delimiters to original valuesYZZP# Reset AS delimiters to original valuesW[\
[r05]^
]o010astidASTID
^n_`
_124

txdl
`112

ascr\a
aL68b
bo67	0_pathcd
cldef
ei-0gh
gIi0_prepare_cmdij
jo0_cmd
hkkklm
llnon,& Ensure shell `_cmd` is working from the property directory.
	For testing purposes, it also sets the `AB_BRANCH` environmental variable.

	:param _cmd: Shell command to be run in `do shell script`
	:type _cmd: ``string``
	:returns: Shell command with `pwd` set properly
	:rtype: ``string``

	oppL Ensure shell `_cmd` is working from the property directory.
	For testing purposes, it also sets the `AB_BRANCH` environmental variable.

	:param _cmd: Shell command to be run in `do shell script`
	:type _cmd: ``string``
	:returns: Shell command with `pwd` set properly
	:rtype: ``string``

	mqr
qlsts93# Ensure `pwd` is properly quoted for shell commandtuuf# Ensure `pwd` is properly quoted for shell commandrvw
vr	xy
xnz{
z1

strq
{l|
|n}~
}I0_pwd
~f
yo0pwdw
l

& # Declare environmental variable@# Declare environmental variable
l

%#TODO: remove for final release>#TODO: remove for final release
r

m
0export AB_BRANCH=devel;
o0testing_var
l71# return shell script where `pwd` is properly setb# return shell script where `pwd` is properly set
L
b
b
b
b
o0testing_var
mcd
o0pwd
m; bash
o0_cmdf
l
i14
I0_check_icon
o	0_icon
k
l Check if `_icon` exists, and if not revert to system download icon.

	:returns: POSIX path to `_icon`
	:rtype: ``string`` (POSIX path)

	 Check if `_icon` exists, and if not revert to system download icon.

	:returns: POSIX path to `_icon`
	:rtype: ``string`` (POSIX path)

Q
k
c
4

psxf
o	0_icon
m

alis
L

o
	0_icon
R
.ascrerr ********
L
m/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/SidebarDownloadsFolder.icns
l
i58
I0
_check_dir
o0_folder
k
l Check if `_folder` exists, and if not create it, including any sub-directories.

	:returns: POSIX path to `_folder`
	:rtype: ``string`` (POSIX path)

	0 Check if `_folder` exists, and if not create it, including any sub-directories.

	:returns: POSIX path to `_folder`
	:rtype: ``string`` (POSIX path)

Z
H
n
I0_folder_exists
o0_folder
f
I

.sysoexecTEXTTEXT
b

m
mkdir -p
l
n
1

strq
o0_folder
L
o0_folder
l
l
i9<
I0_folder_exists
o0_folder
k
l Return ``true`` if `_folder` exists, else ``false``

	:param _folder: Full path to directory
	:type _folder: ``string`` (POSIX path)
	:returns: ``Boolean``

	> Return ``true`` if `_folder` exists, else ``false``

	:param _folder: Full path to directory
	:type _folder: ``string`` (POSIX path)
	:returns: ``Boolean``

Z
n
I0_path_exists
o0_folder
f
O
L

l

=

n

m

pcls
l

4

ditm
o0_folder
m

cfol
m
sevsalisMacintosh HDH+ҍKSystem Events.appU'A	 CoreServices*A9ҍKҍHҍG=Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
L
m
boovfals
l
i=@

	I0_path_exists
o	0_path

kY

l Return ``true`` if `_path` exists, else ``false``

	:param _path: Any POSIX path (file or folder)
	:type _path: ``string`` (POSIX path)
	:returns: ``Boolean``

	D Return ``true`` if `_path` exists, else ``false``

	:param _path: Any POSIX path (file or folder)
	:type _path: ``string`` (POSIX path)
	:returns: ``Boolean``

Z
G
=
o	0_path
m

msng
n
I
0	_is_empty
o	0_path
f
L
m
boovfals ~
 QY!"#
!kO$$%&
%Z)'(}|
'= )*
)n+,
+m{
{
pcls
,ozz	0_path
*my
y
alis
(L#%-
-m#$x
xboovtrue}|&.w
.Z*O/012
/E*-34
3o*+vv	0_path
4m+,5566:
0k087789
8405u:
u
alis
:o23tt	0_path9;s
;L68<
<m67r
rboovtrues1=>
=E;>?@
?o;<qq	0_path
@m<=AABB/>Cp
CkAJDDEF
EcAGGH
G4AEoI
o
psxf
IoCDnn	0_path
HmEFm
m
alisFJl
JLHJK
KmHIk
kboovtruelp
2LMOL
LmMNj
jboovfalsw
"RiMh
i.ascrerr ********
Mogg0msgh
#LWYN
NmWXf
fboovfals~OP
OledcedcPQR
QiADST
SIbUab
0	_is_emptyUV`
Vo__0_obj`a
Tk(WWXY
Xl^Z[^Z Return ``true`` if `_obj ` is empty, else ``false``

	:param _obj: Any Applescript type
	:type _obj: (optional)
	:returns: ``Boolean``

	[\\ Return ``true`` if `_obj ` is empty, else ``false``

	:param _obj: Any Applescript type
	:type _obj: (optional)
	:returns: ``Boolean``

	Y]^
]l]_`]_!# Is `_obj ` a ``Boolean``?`aa6# Is `_obj ` a ``Boolean``?^bc
bZde\[
dEfg
fJhhij
imZ
ZboovtruejkY
kmX
XboovfalsY
goWW0_obj
eL	l
lm
V
Vboovfals\[cmn
mlUopUo'!# Is `_obj ` a ``missing value``?pqqB# Is `_obj ` a ``missing value``?nrs
rZtuTS
t=vw
voRR0_obj
wmQ
Q
msng
uLx
xmP
PboovtrueTSsyz
ylO{|O{"# Is `_obj ` a empty string?|}}8# Is `_obj ` a empty string?z~N
~L(
='
n%
1#%M
M
leng
l#LK
n#
I#JIJ	0_trimH
oGG0_objHI
fLK
m%&FFNR
lEDCEDCB
iEH
IA@A	0_trim?
o>>0_str?@
k
l== Remove white space from beginning and end of `_str`

	:param _str: A text string
	:type _str: ``string``
	:returns: trimmed string

	 Remove white space from beginning and end of `_str`

	:param _str: A text string
	:type _str: ``string``
	:returns: trimmed string

Z <;
G
G
>
n
m:
:
pcls
o990_str
m8
8
ctxt
>

n
m	7
7
pcls
o	660_str
m5
5
TEXT
=
o440_str
m3
3
msng
L
o220_str<;
Z!-10
=!$
o!"//0_str
m"#
L')
o'(..0_str10
V.W
Q6R
r9H
c9F
n9D
7:D-
-
cobj
m>@,,
mAC++
o9:**0_str
mDE)
)
ctxt
o((0_str
R'&
'.ascrerr ********
o%%0msg&
LPR
mPQ
C25
o23$$0_str
m34
VX
Q`|
rcr
ccp
ncn
7dn#
#
cobj
mhj""
mkm!!
ocd  0_str
mno

ctxt
o0_str
R
.ascrerr ********
Lz|
mz{
D\_
o\]0_str
m]^
L
o0_strB

	"0bundler_versionBUNDLER_VERSION	0_home0bundler_dirBUNDLER_DIR0	cache_dir	CACHE_DIR0load_bundler0
_bootstrap0_install_confirmation0_pwd0_prepare_cmd
0_check_icon0
_check_dir0_folder_exists
0_path_exists
0	_is_empty	0_trim
.aevtoappnull****"/Users/smargheim//Users/smargheim/Library/Application Support/Alfred 2/Workflow Data/alfred.bundler-devel/Users/smargheim/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/alfred.bundler-develG0load_bundler0
as_bundlerjw0_folder_exists0
_bootstrap
.sysodelanullnmbr
.sysoloadscptfile0)bk+e
)j+YhOjOb%EOj0
_bootstrap0urlsURLs0_zipfile0_url0_status0_cmd0
as_bundler !&:AQ0_install_confirmation

strq

kocl

cobj
.corecnte********
.sysoexecTEXTTEXT

errn0
_check_dir0_path_exists
.sysodelanullnmbr

psxf

alis
.coredeloobj obj
)j+W	XfOb%%b%%lvEOb,%EO1[lkh%%%%jEOaYh[OYOa)aalaYhO)bk+Oab,%a%b,%EOjOba%EOh)k+ajYOa*ab/a&jUOh]0_install_confirmation
0_plist0_cmd	0_name	0_icon	0_text
0	_responseq
0_pwd
.sysoexecTEXTTEXT0_check_icon

btns

dflt

appr

disp

psxf
.sysodlogaskrTEXT

bhit
.GURLGURLnullTEXT

errn)j+%EO%%EOjEO)j+%EO)k+EO%%%EOmvm%a*a/aa,EOaeYhOa a	ajUO)aalaYhOa)aalaYh0_pwd0astidASTID	0_path
5T

ascr

txdl

cobj
.earsffdralis afdr

psxp

citm

TEXT9,lvE[k/EZ[l/,FZO)j,[\[Zk\Z2&%EO,FOh0_prepare_cmd0_cmd0_cmd0pwd0testing_var0_pwd

strq)j+,EOEO%%%%0_check_icon	0_icon	0_icon

psxf

alis*/&OW	X0
_check_dir0_folder0_folder0_folder_exists

strq
.sysoexecTEXTTEXT)k+,%jYhO0_folder_exists0_folder0_folder0_path_exists

ditm

pcls

cfol)k+*/,UYhOf
	0_path_exists

	0_path	0_path0msg
5A

msng
0	_is_empty

bool

pcls

alis

psxf0msgZ

)k+&fYhO9,eYhO
*/EOeY*/&OeYfW	X	fT
0	_is_empty~
~
}}0_obj||0_obj{zy
{
msngz	0_trim
y
leng)eflvfYhOeYhO)k+,jxwvux	0_trimwttss0_strvrqr0_strq0msgponmlkjihg
p
pcls
o
ctxt
n
TEXT
m
bool
l
msng
k
cobjj0msgihgu,
	,&
&YhOYhO(h[\[Zl\Zi2&EW	X	[OYO(h[\[Zk\Z2&EW	X
	[OYOfedc
f.aevtoappnull****
k:bbedcbascrޭ


added warning before erasing the folder

added warning before erasing the folder

-- export all layers to image files
-- Copyright (c) 2011, Charles-Axel Dein

-- Settings
property exportFileExtension : "png"
-- End of Settings

on file_exists(FileOrFolderToCheckString)
   try
       alias FileOrFolderToCheckString
       return true
   on error
       return false
   end try
end file_exists

tell application "OmniGraffle Professional 5"
	set theWindow to front window
	set theDocument to document of theWindow
	set theFilename to name of theDocument
    -- remove .graffle
    set theFilename to text 1 thru ((offset of "." in theFilename) - 1) of theFilename

	set export_folder to (choose folder with prompt "Pick the destination folder") as string
	set export_folder to export_folder & theFilename & ":"

	-- create folder
	if file_exists(export_folder) of me then
		try
			display alert "The file already exists. Do you want to replace it?" buttons {"Cancel", "Erase"} cancel button 1
		on error errText number errNum
			if (errNum is equal to -128) then
				return
			end if
		end try

		-- deletes the folder (necessary because some layers may have been renamed
		do shell script "rm -rf " & quoted form of POSIX path of export_folder

	else
		-- creates the folder
		do shell script "mkdir -p " & quoted form of POSIX path of export_folder
	end if

	set canvasCount to count of canvases of theDocument

	set i to 0
	repeat with canvasNumber from 1 to canvasCount
		set theCanvas to canvas canvasNumber of theDocument
		set canvas_name to name of theCanvas
		set canvas of theWindow to theCanvas
		set layerCount to count of layers of theCanvas

		-- hide all layers, except those beginning with "*"
		-- also check if there is only one layer to be exported
		repeat with layerNumber from 1 to layerCount
			set theLayer to layer layerNumber of theCanvas
			set number_of_layer_to_be_exported to 0

			if theLayer is prints and class of theLayer is not shared layer then
				set layer_name to name of theLayer as string
				if character 1 of layer_name is not "*" then
					set visible of theLayer to false
					set number_of_layer_to_be_exported to number_of_layer_to_be_exported + 1
				else
					set visible of theLayer to true
				end if
			end if

		end repeat

		set area type of current export settings to current canvas
        set draws background of current export settings to false
        set include border of current export settings to false

		repeat with layerNumber from 1 to layerCount
			set theLayer to layer layerNumber of theCanvas

			if (theLayer is prints) and (class of theLayer is not shared layer) then
				set layer_name to name of theLayer as string
				set filename to canvas_name & " - " & layer_name & "." & exportFileExtension
				set export_filename to export_folder & filename

				-- show the layer, export, then hide the layer
				if character 1 of layer_name is not "*" then
					set visible of theLayer to true
					save theDocument in export_filename
					set visible of theLayer to false
				end if

			end if

		end repeat

	end repeat
end tell

-- export all layers to image files
-- Copyright (c) 2011, Charles-Axel Dein

-- Settings
property exportFileExtension : "png"
-- End of Settings

tell application "OmniGraffle Professional 5"
	set theWindow to front window
	set theDocument to document of theWindow
	set theFilename to name of theDocument
    -- remove .graffle
    set theFilename to text 1 thru ((offset of "." in theFilename) - 1) of theFilename

	set export_folder to (choose folder with prompt "Pick the destination folder") as string
	set export_folder to export_folder & theFilename & ":"

	-- create folder
	do shell script "mkdir -p " & quoted form of POSIX path of export_folder

	set canvasCount to count of canvases of theDocument

	set i to 0
	repeat with canvasNumber from 1 to canvasCount
		set theCanvas to canvas canvasNumber of theDocument
		set canvas_name to name of theCanvas
		set canvas of theWindow to theCanvas
		set layerCount to count of layers of theCanvas

		-- hide all layers, except those beginning with "*"
		-- also check if there is only one layer to be exported
		repeat with layerNumber from 1 to layerCount
			set theLayer to layer layerNumber of theCanvas
			set number_of_layer_to_be_exported to 0

			if theLayer is prints and class of theLayer is not shared layer then
				set layer_name to name of theLayer as string
				if character 1 of layer_name is not "*" then
					set visible of theLayer to false
					set number_of_layer_to_be_exported to number_of_layer_to_be_exported + 1
				else
					set visible of theLayer to true
				end if
			end if

		end repeat

		set area type of current export settings to current canvas
        set draws background of current export settings to false
        set include border of current export settings to false

		repeat with layerNumber from 1 to layerCount
			set theLayer to layer layerNumber of theCanvas

			if (theLayer is prints) and (class of theLayer is not shared layer) then
				set layer_name to name of theLayer as string
				set filename to canvas_name & " - " & layer_name & "." & exportFileExtension
				set export_filename to export_folder & filename

				-- show the layer, export, then hide the layer
				if character 1 of layer_name is not "*" then
					set visible of theLayer to true
					save theDocument in export_filename
					set visible of theLayer to false
				end if

			end if

		end repeat

	end repeat
end tell


add dont save

add dont save

FasdUAS 1.101.10
k
i
I0reset_simulator
Qx

	kk

I
.ascrcmnt********
m8BEGIN:Reset iPhone Simulator
O
I

.miscactvnullnull
m
P@alisMacintosh HDuH+iPhone Simulator.appw3	 Applicationsv@J٣LeMacintosh HD:Developer:Platforms:iPhoneSimulator.platform:Developer:Applications:iPhone Simulator.app*iPhone Simulator.appMacintosh HDXDeveloper/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/
OX
OW
kV
O? !
 O&>"#
"O-=$%
$I4<&
.prcsclicuieluiel
&448'

menI
'm67(())6Reset Content and Settings &
%4-1*

menE
*m/0++,,iOs Simulator
#4&*-

mbri
-m()..//iOs Simulator
!4#0

mbar
0m!"1
1O@V23
2kGU4456
5IGS7
.prcsclicuieluiel
74GO8

butT
8mKN99::
Reset6;
;lTT
34@D<

cwin
<mBC
4=

prcs
=m>>?? iPhone Simulator
m@@sevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/AB
AOYcCD
CI]b
.aevtquitnullnull
DmYZEEP@alisMacintosh HDuH+iPhone Simulator.appw3	 Applicationsv@J٣LeMacintosh HD:Developer:Platforms:iPhoneSimulator.platform:Developer:Applications:iPhone Simulator.app*iPhone Simulator.appMacintosh HDXDeveloper/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/BF
FIdkG
.ascrcmnt********
GmdgHHII8DONE: RESET SIMULATOR & QUIT

RJ
.ascrerr ********
Jo0e
IsxK
.ascrcmnt********
Kost0eLM
LlMNO
NiPQ
PIR0waitRS
So0sec
QkTTUV
UI	W
.ascrcmnt********
WbXY
XbZ[
Zm\\]]wait for
[o0sec
Ym^^__secondsV`
`I
a
.sysodelanullnmbr
ao
0secObc
blcde
difg
fIh0open_instrumentshi
io0filepath
gk+jjkl
kQ%mno
mkppqr
qr
st
sbuv
umwwxx
open
vnyz
y1

strq
zo0filepath
to0commandr{|
{I}
.ascrcmnt********
}b~
~mJBEGIN: Open instruments with command:
o
0command|
I
.sysoexecTEXTTEXT
o0command
nR
.ascrerr ********
o0e
oI %
.ascrcmnt********
o !0el
I&+
.ascrcmnt********
m&',DONE: oepn instrumentse
l
i
I0click_instruments_menu
o
0	menu_item
k8
O

I
.miscactvnullnull
m@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/
O8
O7
O6
O5
O$4
I+3
.prcsclicuieluiel
4+/

menI
o-.
0	menu_item
4$(

menE
m&'File
4!

mbri
m File
4

mbar
m
4

prcs
mInstruments
msevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
l
i
I0wait_for_menu_and_click
o
0	menu_item
kw
I
.ascrcmnt********
b
m Begin: Wait for
o
0	menu_item
l
I

.sysodelanullnmbr
m
O
I
.miscactvnullnull
m@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/
Tu
Op
O"o
O)n
O0m
O7l
k>k
Z>a
E>F
l>D
e>D
n>D
1AC

pnam
2>A

menI
oDE
0	menu_item
kI]
lII
IIQ~
.prcsclicuieluiel
4IM}
}
menI
oKL||
0	menu_item~
IR[{z
{.ascrcmnt********
bRW
mRUclick on
oUVyy
0	menu_itemzx
S\]xw
Ibkvu
v.ascrcmnt********
bbg
mbe,still waiting for ...
oeftt
0	menu_itemuw
47;s
s
menE
m9:File
404r
r
mbri
m23File
4)-q
q
mbar
m+,pp
4"&o
o
prcs
m$%Instruments
msevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
lvvnmlnmlk
lvvjihjihk
lgfegfe
i

	Idcbd0restart_record_tracecb

kQ

O

I	a`_
a.miscactvnullnull`_
m@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/

OO
ON
kM
I^]
^.sysodelanullnmbr
m?ٙ]\
OM
O#L
O*K!"
!k1J##$%
$I19[&Z
[.prcsclicuieluiel
&415Y'
Y
menI
'm34(())Stop TraceZ%*+
*I:?X,W
X.sysodelanullnmbr
,m:;VVW+-U
-I@JT.S
T.prcsclicuieluiel
.4@FR/
R
menI
/mBE0011Record TraceSU
"4*.Q2
Q
menE
2m,-3344File
 4#'P5
P
mbri
5m%&6677File
4 O8
O
mbar
8mNN\
4M9
M
prcs
9m::;;Instruments
m<<sevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/=L
=lPPKJIKJIL>?
>i@A
@IHGFH0zoomGF
AO.BC
BO-DE
Dk,FFGH
GIEID
E.sysodelanullnmbr
ImJJ?ٙDHKC
KO,LM
LO+NO
Nk*PPQR
QO(ST
Sl&&BUVBUclick menu item "Zoom"VWW,click menu item "Zoom"
T4#AX
A
menE
Xm!"YYZZWindowR[@
[l))?>=?>=@
O4<\
<
mbri
\m]]^^Window
M4;_
;
mbar
_m::C
E49`
9
prcs
`maabbInstruments
CmccsevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/?de
dl876876efg
fihi
hI54350export_instruments_log43
ikjjkl
kO
mn
mI	210
2.miscactvnullnull10
nmoo@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/lpq
pOFrs
rOEtu
tkDvvwx
wI*/y.
/.prcsclicuieluiel
yn&z{
z4#&-|
-
butT
|m$%}}~~.Export All Results Now &
{n#
4 #,
,
scra
m!"++
n
4 *
*
splg
m))
n
4(
(
splg
m''
4&
&
cwin
m*sampleApp_instruments.x
I+0%$
%.sysodelanullnmbr
m+,?333333$
I1<#"
#.prcsclicuieluiel
n18
458!
!
butT
m67Open
415

cwin
m34Export"
I=D
.ascrcmnt********
m=@*exporting .. log file
u4

prcs
mInstruments
smsevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/q
IGM0wait
mHI
ONZ
kRY
IRW
.aevtquitnullnull
lXX
mNO@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/
O[
O_
Ih
.prcsclicuieluiel
nh
4z

butT
m{~Don t Save
nhz
4uz

sheE
mxy
nhu
4pu

cwin
mqt*sampleApp_instruments
nhp
4ip

pcap
mloInstruments
mhisevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
4_e

prcs
madInstruments
m[\sevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
I
.ascrcmnt********
m8quit application Instrumentsg
l
i #
I0wait_for_script_to_finish
kX
O

I
.miscactvnullnull
m@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/
OQ
OP
lO
OO
k)N
T)L
k.G
I.3
.sysodelanullnmbr
m./
l44
Z4G
=49
147

enaB
m78
boovfals
S<=
k@G
I@E
.ascrcmnt********
m@APscript is running ... try again in 3 sec
lFF
lMM
lMM,&click button "Open" of window "Export"Lclick button "Open" of window "Export"
lMM
n&
4#&

butT
	m$%

Stop Script
n#

4 #

scra
m!"

n
4

splg
m
n
4

splg
m
4

cwin
m*sampleApp_instruments stop script stop script
4

prcs
mInstruments
msevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
IRX0wait
mST !
 l!"#
"i$'$%
$I0click_ignore
%k&&'(
'I)
.ascrcmnt********
)m**++,Click on ignore button(,
,O-.
-I
/
.prcsclicuieluiel/0

insh
0J1123
2m
34
4m
m
.m55sevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/#67
6l789
8l:
:I;
.ascrcmnt********
;m<<==(Start gui-autoscript9>?
>l@
@I0reset_simulator?AB
AlBCD
ClE
ErFG
FnHI
H1

psxp
Im
JJKKMacintosh HD:Users:blue:work:socialize:socialize-sdk-ios:SampleSdkApp:testrunner:sampleApp_instruments.trace
Go0filepathDLM
LlN
NIO0open_instrumentsOP
Po0filepathMQR
QlS
SIT
.sysodelanullnmbr
TmRUV
Ul%W
WI%X0wait_for_menu_and_clickXY
Ym !ZZ[[Record TraceV\]
\l&+^
^I&+0wait_for_script_to_finish]_`
_l,1a
aI,10click_ignore`bc
bl28d
dI28e0wait_for_menu_and_clickef
fm34gghhStop Tracecij
il9?k
kI9?l0wait_for_menu_and_clicklm
mm:;nnooRecord Tracejpq
pl@Er
rI@E0wait_for_script_to_finishqst
slFKu
uIFK0export_instruments_logtvw
vlwx
xl~yz{|}~}|{zyxwvut~ysrqponmlkjihgfedcba`_^s0reset_simulatorr0waitq0open_instrumentsp0click_instruments_menuo0wait_for_menu_and_clickn0restart_record_tracem0zooml0export_instruments_logk0wait_for_script_to_finishj0click_ignore
i.aevtoappnull****h0filepathgfedcba`_^z]\[Z]0reset_simulator\[YY0eXW@V>UT.S+R(QPO9NHML
X.ascrcmnt********
W.miscactvnullnull
V
prcs
U
mbar
T
mbri
S
menE
R
menI
Q.prcsclicuieluiel
P
cwin
O
butT
N.aevtquitnullnullM0eLZymjO*jUOA*/9*k/*/*/
*/jUUUO*k/*aa/jOPUUUO*jUOajWXj{KQJIHK0waitJGGFF0secIEE0sec\^DC
D.ascrcmnt********
C.sysodelanullnmbrH%%jOj|BgA@?B0open_instrumentsA>>==0filepath@<;:<0filepath;0command:0ew98765
9
strq
8.ascrcmnt********
7.sysoexecTEXTTEXT60e5?,,%EO%jOjWXjOj}432140click_instruments_menu300//
0	menu_item2..
0	menu_item-,+*)('
-.miscactvnullnull
,
prcs
+
mbar
*
mbri
)
menE
(
menI
'.prcsclicuieluiel19*jUO**/"*k/*/*/
*/jUUUUU~&%$#&0wait_for_menu_and_click%""!!
0	menu_item$
0	menu_item
.ascrcmnt********
.sysodelanullnmbr
.miscactvnullnull

prcs

mbar

mbri

menE

menI

pnam
.prcsclicuieluiel#x%jOkjO*jUO[hZO*/G*k/?*/7*//*-,E*/jOa%jOYhOa%jUUUUU[OYOP
0restart_record_trace<:
63(
	0
.miscactvnullnull

prcs
.sysodelanullnmbr

mbar

mbri

menE

menI

.prcsclicuieluiel	R*jUOA*/9jO*k/+*/#*/*/jOjO*a/jUUUUUOPA0zoom
caJ]Y

prcs
.sysodelanullnmbr

mbar

mbri

menE/+*/#jO*k/*/
*/hUOPUUUUi0export_instruments_logo}
.miscactvnullnull

prcs

cwin

splg

scra

butT
.prcsclicuieluiel
.sysodelanullnmbr
.ascrcmnt********0wait
.aevtquitnullnull

pcap

sheE*jUO8*/0*/k/k/m//jOj
O*//jOajUUO*kk+O	*jOPUO'*a/aa/a/ak/a/jUUOaj0wait_for_script_to_finish

.miscactvnullnull

prcs

cwin

splg

scra

butT
.sysodelanullnmbr

enaB
.ascrcmnt********0waitY*jUOC*/;*/k/k/m//'"hZljO*,fY	jOP[OYOPUUUO*kk+%0click_ignore*5
.ascrcmnt********

inshm
.prcsclicuieluieljO*lvlU
.aevtoappnull****
kK8>CLQU\_bips<JZgn
.ascrcmnt********0reset_simulator

psxp0filepath0open_instruments
.sysodelanullnmbr0wait_for_menu_and_click0wait_for_script_to_finish0click_ignore0export_instruments_logLjO*j+O,EO*k+OkjO*k+	O*j+
O*j+O*k+	O*k+	O*j+
O*j+/Users/blue/work/socialize/socialize-sdk-ios/SampleSdkApp/testrunner/sampleApp_instruments.trace}|{zyxwvutascrޭ

FasdUAS 1.101.10
k
i
I0reset_simulator
Qx

	kk

I
.ascrcmnt********
m8BEGIN:Reset iPhone Simulator
O
I

.miscactvnullnull
m
P@alisMacintosh HDuH+iPhone Simulator.appw3	 Applicationsv@J٣LeMacintosh HD:Developer:Platforms:iPhoneSimulator.platform:Developer:Applications:iPhone Simulator.app*iPhone Simulator.appMacintosh HDXDeveloper/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/
OX
OW
kV
O? !
 O&>"#
"O-=$%
$I4<&
.prcsclicuieluiel
&448'

menI
'm67(())6Reset Content and Settings &
%4-1*

menE
*m/0++,,iOs Simulator
#4&*-

mbri
-m()..//iOs Simulator
!4#0

mbar
0m!"1
1O@V23
2kGU4456
5IGS7
.prcsclicuieluiel
74GO8

butT
8mKN99::
Reset6;
;lTT
34@D<

cwin
<mBC
4=

prcs
=m>>?? iPhone Simulator
m@@sevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/AB
AOYcCD
CI]b
.aevtquitnullnull
DmYZEEP@alisMacintosh HDuH+iPhone Simulator.appw3	 Applicationsv@J٣LeMacintosh HD:Developer:Platforms:iPhoneSimulator.platform:Developer:Applications:iPhone Simulator.app*iPhone Simulator.appMacintosh HDXDeveloper/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/BF
FIdkG
.ascrcmnt********
GmdgHHII8DONE: RESET SIMULATOR & QUIT

RJ
.ascrerr ********
Jo0e
IsxK
.ascrcmnt********
Kost0eLM
LlMNO
NiPQ
PIR0waitRS
So0sec
QkTTUV
UI	W
.ascrcmnt********
WbXY
XbZ[
Zm\\]]wait for
[o0sec
Ym^^__secondsV`
`I
a
.sysodelanullnmbr
ao
0secObc
blcde
difg
fIh0open_instrumentshi
io0filepath
gk+jjkl
kQ%mno
mkppqr
qr
st
sbuv
umwwxx
open
vnyz
y1

strq
zo0filepath
to0commandr{|
{I}
.ascrcmnt********
}b~
~mJBEGIN: Open instruments with command:
o
0command|
I
.sysoexecTEXTTEXT
o0command
nR
.ascrerr ********
o0e
oI %
.ascrcmnt********
o !0el
I&+
.ascrcmnt********
m&',DONE: oepn instrumentse
l
i
I0click_instruments_menu
o
0	menu_item
k8
O

I
.miscactvnullnull
m@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/
O8
O7
O6
O5
O$4
I+3
.prcsclicuieluiel
4+/

menI
o-.
0	menu_item
4$(

menE
m&'File
4!

mbri
m File
4

mbar
m
4

prcs
mInstruments
msevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
l
i
I0wait_for_menu_and_click
o
0	menu_item
kw
I
.ascrcmnt********
b
m Begin: Wait for
o
0	menu_item
l
I

.sysodelanullnmbr
m
O
I
.miscactvnullnull
m@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/
Tu
Op
O"o
O)n
O0m
O7l
k>k
Z>a
E>F
l>D
e>D
n>D
1AC

pnam
2>A

menI
oDE
0	menu_item
kI]
lII
IIQ~
.prcsclicuieluiel
4IM}
}
menI
oKL||
0	menu_item~
IR[{z
{.ascrcmnt********
bRW
mRUclick on
oUVyy
0	menu_itemzx
S\]xw
Ibkvu
v.ascrcmnt********
bbg
mbe,still waiting for ...
oeftt
0	menu_itemuw
47;s
s
menE
m9:File
404r
r
mbri
m23File
4)-q
q
mbar
m+,pp
4"&o
o
prcs
m$%Instruments
msevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
lvvnmlnmlk
lvvjihjihk
lgfegfe
i

	Idcbd0restart_record_tracecb

kQ

O

I	a`_
a.miscactvnullnull`_
m@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/

OO
ON
kM
I^]
^.sysodelanullnmbr
m?ٙ]\
OM
O#L
O*K!"
!k1J##$%
$I19[&Z
[.prcsclicuieluiel
&415Y'
Y
menI
'm34(())Stop TraceZ%*+
*I:?X,W
X.sysodelanullnmbr
,m:;VVW+-U
-I@JT.S
T.prcsclicuieluiel
.4@FR/
R
menI
/mBE0011Record TraceSU
"4*.Q2
Q
menE
2m,-3344File
 4#'P5
P
mbri
5m%&6677File
4 O8
O
mbar
8mNN\
4M9
M
prcs
9m::;;Instruments
m<<sevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/=L
=lPPKJIKJIL>?
>i@A
@IHGFH0zoomGF
AO.BC
BO-DE
Dk,FFGH
GIEID
E.sysodelanullnmbr
ImJJ?ٙDHKC
KO,LM
LO+NO
Nk*PPQR
QO(ST
Sl&&BUVBUclick menu item "Zoom"VWW,click menu item "Zoom"
T4#AX
A
menE
Xm!"YYZZWindowR[@
[l))?>=?>=@
O4<\
<
mbri
\m]]^^Window
M4;_
;
mbar
_m::C
E49`
9
prcs
`maabbInstruments
CmccsevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/?de
dl876876efg
fihi
hI54350export_instruments_log43
ikjjkl
kO
mn
mI	210
2.miscactvnullnull10
nmoo@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/lpq
pOFrs
rOEtu
tkDvvwx
wI*/y.
/.prcsclicuieluiel
yn&z{
z4#&-|
-
butT
|m$%}}~~.Export All Results Now &
{n#
4 #,
,
scra
m!"++
n
4 *
*
splg
m))
n
4(
(
splg
m''
4&
&
cwin
m*sampleApp_instruments.x
I+0%$
%.sysodelanullnmbr
m+,?333333$
I1<#"
#.prcsclicuieluiel
n18
458!
!
butT
m67Open
415

cwin
m34Export"
I=D
.ascrcmnt********
m=@*exporting .. log file
u4

prcs
mInstruments
smsevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/q
IGM0wait
mHI
ONX
IRW
.aevtquitnullnull
mNO@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/
IY`
.ascrcmnt********
mY\8quit application Instruments
Oa
ke
Oe
In~
.prcsclicuieluiel

insh
Jrz
mru

mux

4ek

prcs
mgjInstruments

l		)#button "Don't Save" of first windowFbutton "Don't Save" of first window

mabsevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
I
.ascrcmnt********
m8quit application Instrumentsg
l
i #
I0wait_for_script_to_finish
kX
O

I
.miscactvnullnull
m@alisxMacintosh HDuH+^Instruments.app5Iϳ	 Applicationsv@Jl^L3Macintosh HD:Developer:Applications:Instruments.app Instruments.appMacintosh HD&Developer/Applications/Instruments.app/
OQ
OP
lO
OO
k)N
T)L
k.G
I.3
.sysodelanullnmbr
m./
l44
Z4G
=49
147

enaB
m78
boovfals
S<=
k@G
I@E
.ascrcmnt********
m@APscript is running ... try again in 3 sec
lFF
lMM
lMM,&click button "Open" of window "Export"Lclick button "Open" of window "Export"
lMM
n&
4#&

butT
m$%Stop Script
n#
4 #

scra
m!"
n

	4

splg
m

n

4

splg
m

4

cwin
m*sampleApp_instruments stop script stop script
4

prcs
mInstruments
msevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/
IRX0wait
mST
l
i$'
I0click_ignore
k  !"
!I#
.ascrcmnt********
#m$$%%,Click on ignore button"&
&O'(
'I
)
.prcsclicuieluiel)*

insh
*J++,-
,m
-.
.m
m
(m//sevsalisMacintosh HDuH+ͪSystem Events.app<'uͦ	 CoreServicesv@Jv>&ͪff:Macintosh HD:System:Library:CoreServices:System Events.app$System Events.appMacintosh HD-System/Library/CoreServices/System Events.app/01
0l123
2l4
4I5
.ascrcmnt********
5m6677(Start gui-autoscript389
8l:
:I0reset_simulator9;<
;l<=>
=l?
?r@A
@nBC
B1

psxp
Cm
DDEEMacintosh HD:Users:blue:work:socialize:socialize-sdk-ios:SampleSdkApp:testrunner:sampleApp_instruments.trace
Ao0filepath>FG
FlH
HII0open_instrumentsIJ
Jo0filepathGKL
KlM
MIN
.sysodelanullnmbr
NmLOP
Ol%Q
QI%R0wait_for_menu_and_clickRS
Sm !TTUURecord TracePVW
Vl&+X
XI&+0wait_for_script_to_finishWYZ
Yl,1[
[I,10click_ignoreZ\]
\l28^
^I28_0wait_for_menu_and_click_`
`m34aabbStop Trace]cd
cl9?e
eI9?f0wait_for_menu_and_clickfg
gm:;hhiiRecord Tracedjk
jl@El
lI@E0wait_for_script_to_finishkmn
mlFKo
oIFK0export_instruments_lognpq
plqr
rl
~stuvwxyz{|}~~s}|{zyxwvuts}0reset_simulator|0wait{0open_instrumentsz0click_instruments_menuy0wait_for_menu_and_clickx0restart_record_tracew0zoomv0export_instruments_logu0wait_for_script_to_finisht0click_ignore
s.aevtoappnull****trqpor0reset_simulatorqpnn0eml@k>ji.h+g(fed9cHba
m.ascrcmnt********
l.miscactvnullnull
k
prcs
j
mbar
i
mbri
h
menE
g
menI
f.prcsclicuieluiel
e
cwin
d
butT
c.aevtquitnullnullb0eaoymjO*jUOA*/9*k/*/*/
*/jUUUO*k/*aa/jOPUUUO*jUOajWXju`Q_^]`0wait_\\[[0sec^ZZ0sec\^YX
Y.ascrcmnt********
X.sysodelanullnmbr]%%jOjvWgVUTW0open_instrumentsVSSRR0filepathUQPOQ0filepathP0commandO0ewNMLKJ
N
strq
M.ascrcmnt********
L.sysoexecTEXTTEXTK0eJT,,%EO%jOjWXjOjwIHGFI0click_instruments_menuHEEDD
0	menu_itemGCC
0	menu_itemBA@?>=<
B.miscactvnullnull
A
prcs
@
mbar
?
mbri
>
menE
=
menI
<.prcsclicuieluielF9*jUO**/"*k/*/*/
*/jUUUUUx;:98;0wait_for_menu_and_click:7766
0	menu_item955
0	menu_item43210/.-,+
4.ascrcmnt********
3.sysodelanullnmbr
2.miscactvnullnull
1
prcs
0
mbar
/
mbri
.
menE
-
menI
,
pnam
+.prcsclicuieluiel8x%jOkjO*jUO[hZO*/G*k/?*/7*//*-,E*/jOa%jOYhOa%jUUUUU[OYOPy*
)('*0restart_record_trace)(&<%:$#"6!3 (0
&.miscactvnullnull
%
prcs
$.sysodelanullnmbr
#
mbar
"
mbri
!
menE

menI
.prcsclicuieluiel'R*jUOA*/9jO*k/+*/#*/*/jOjO*a/jUUUUUOPzA0zoom
caJ]Y

prcs
.sysodelanullnmbr

mbar

mbri

menE/+*/#jO*k/*/
*/hUOPUUUU{i0export_instruments_logo
}

.miscactvnullnull

prcs

cwin

splg

scra

butT

.prcsclicuieluiel
	.sysodelanullnmbr
.ascrcmnt********0wait
.aevtquitnullnull

insh*jUO8*/0*/k/k/m//jOj
O*//jOajUUO*kk+O*jUOajO*a/*aaalvlUOPUOaj|0wait_for_script_to_finish
.miscactvnullnull

prcs

cwin

splg

scra

butT
.sysodelanullnmbr

enaB
.ascrcmnt********0waitY*jUOC*/;*/k/k/m//'"hZljO*,fY	jOP[OYOPUUUO*kk+}0click_ignore$/
.ascrcmnt********

inshm
.prcsclicuieluieljO*lvlU~
.aevtoappnull****
kK28=FKOVY\cjm6DTah
.ascrcmnt********0reset_simulator

psxp0filepath0open_instruments
.sysodelanullnmbr0wait_for_menu_and_click0wait_for_script_to_finish0click_ignore0export_instruments_logLjO*j+O,EO*k+OkjO*k+	O*j+
O*j+O*k+	O*k+	O*j+
O*j+ascr
ޭ


Update script again

Update script again

on run argv
    set command to (item 1 of argv)

    tell application "iTerm2"
      set _window to (current window)

      if _window is equal to missing value then
        create window with default profile
      end if

      tell current window
        tell current session
          write text command
        end tell
      end tell
    end tell
end run

on run argv
    set command to (item 1 of argv)

    tell application iTerm2
      set _window to (current window)

      if _window is equal to missing value then
        create window with default profile
      end if

      tell current window
        tell current session
          write text command
        end tell
      end tell
    end tell
end run


Remove closing iTerm2

Remove closing iTerm2

set close_vagrant to "z puppet; vagrant halt -f;"

-- close vagrant
tell application "iTerm"
	activate
	set myterm to (make new terminal)
	tell myterm
		launch session "Default"
		set mysession to current session
	end tell

	tell mysession
		write text close_vagrant
	end tell
end tell

set close_vagrant to "z puppet; vagrant halt -f;"

-- close vagrant
tell application "iTerm"
	activate
	set myterm to (make new terminal)
	tell myterm
		launch session "Default"
		set mysession to current session
	end tell

	tell mysession
		write text close_vagrant
	end tell

	delay 5
end tell

-- quit iTerm
ignoring application responses
	tell application "iTerm"
		quit
	end tell
end ignoring

delay 2
tell application "System Events" to keystroke return


Add music applescript

Add music applescript