commit
stringlengths
40
40
old_file
stringlengths
2
205
new_file
stringlengths
2
205
old_contents
stringlengths
0
32.9k
new_contents
stringlengths
1
38.9k
subject
stringlengths
3
9.4k
message
stringlengths
6
9.84k
lang
stringlengths
3
13
license
stringclasses
13 values
repos
stringlengths
6
115k
816400fa37afc2390b9a7b5233a7eafb7dc44219
Run.dyalog
Run.dyalog
 output←regexes(op Run options)input;from;to;options;lines;trans;Expand :Trap 11 22 ⍝ accept filename or actual input input←input ⎕NTIE 0 :EndTrap :Trap 11 22 ⍝ accept filename or actual regex regexes←⎕NGET regexes 1 :EndTrap options←(0⍴⊂⍬),('Greedy' 0)('IC' 1)('Mode' 'D')('Mode' 'M')('DotAll' '1')('U...
 output←regexes(op Run options)input;from;to;options;lines;trans;Expand :Trap 11 22 ⍝ accept filename or actual input input←input ⎕NTIE 0 :EndTrap :Trap 11 22 ⍝ accept filename or actual regex regexes←⊃⎕NGET regexes 1 :EndTrap options←('ResultText' 'Simple')('Greedy' 0)('IC' 1)('Mode' 'D')('Mode' 'M')...
Fix missing ⊃ and always give simple result.
Fix missing ⊃ and always give simple result.
APL
mit
abrudz/QuadRS
74fc0567c21704cfa8a0a0bdc253e7ef64a9df8f
HTML/_HTML.dyalog
HTML/_HTML.dyalog
:Namespace _HTML :class Form : #._html.form :field public Method←'post' :field public Action←'' :field public Serialize←0 ∇ make;c :Access public :Implements constructor :If {6::0 ⋄ ''≢c∘←##.context ⍵}'_Request' Action←c._Request.Page :EndIf ∇ ∇ make1 actio...
:Namespace _HTML :class Form : #._html.form :field public Method←'post' :field public Action←'' :field public Serialize←0 ∇ make;c :Access public :Implements constructor :If {6::0 ⋄ ''≢c∘←##.context ⍵}'_Request' Action←c._Request.Page :EndIf ∇ ∇ make1 actio...
Extend _HTML.Table
Extend _HTML.Table
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
4badcb11d75f4533203c0a9f628fdc3143c74d2e
Extensions/SimpleSessions.dyalog
Extensions/SimpleSessions.dyalog
:Class SimpleSessions ⍝ Default Session Handler, used by the WebServer sample ⍝ Manages HTTP sessions using cookies ⍝ When a HTTP request arrives, checks to see if the session cookie is included and the session ⍝ is in the list of valid sessions. If it is, assign the Session property of the request. ⍝ If it isn't, cre...
:Class SimpleSessions ⍝ Default Session Handler, used by the WebServer sample ⍝ Manages HTTP sessions using cookies ⍝ When a HTTP request arrives, checks to see if the session cookie is included and the session ⍝ is in the list of valid sessions. If it is, assign the Session property of the request. ⍝ If it isn't, cre...
Allow each session to have its own timeout
Allow each session to have its own timeout
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
0324eaa0c3429e92b3744bc7e170905fd12880cc
Run.dyalog
Run.dyalog
 output←regexes(op Run options)input;from;to;options;lines;trans;Expand :Trap 11 22 ⍝ accept filename or actual input input←input ⎕NTIE 0 :EndTrap :Trap 11 22 ⍝ accept filename or actual regex regexes←⊃⎕NGET regexes 1 :EndTrap options←('ResultText' 'Simple')('Greedy' 0)('IC' 1)('Mode' 'D')('Mode' 'M')...
 output←regexes(op Run options)input;from;to;options;lines;trans;Expand :Trap 11 22 ⍝ accept filename or actual input input←input ⎕NTIE 0 :EndTrap :Trap 11 22 ⍝ accept filename or actual regex regexes←⊃⎕NGET regexes 1 :EndTrap options←('ResultText' 'Simple')('Greedy' 0)('IC' 1)('Mode' 'D')('Mode' 'M'...
add missing OM option value and remove ResultText for QuadS
add missing OM option value and remove ResultText for QuadS
APL
mit
abrudz/QuadRS
e6ef2ace0f391e10e32c77769ffdb5f644b8f75a
Utils/SQL.dyalog
Utils/SQL.dyalog
:Namespace SQL (⎕IO ⎕ML)←1 ∇ r←ConnectTo database;ind;ds;dsn;opts;rc;conx;pwd;user;ms;find ms←#.Boot.ms find←{(⍴⍺){⍵×⍺≥⍵}⍺⍳⊂⍵} r←601 'No datasources defined' :If 0<⍴{6::'' ⋄ ⍵.Datasources}ms ⍝ do we have Datasources defined? :If 0=ind←ms.Datasources.Name find database ⍝ try t...
:Namespace SQL (⎕IO ⎕ML)←1 ∇ r←ConnectTo database;ind;ds;dsn;opts;rc;conx;pwd;user;ms;find ms←#.Boot.ms find←{(⍴⍺){⍵×⍺≥⍵}⍺⍳⊂⍵} r←601 'No datasources defined' :If 0<⍴{6::'' ⋄ ⍵.Datasources}ms ⍝ do we have Datasources defined? :If 0=ind←ms.Datasources.Name find database ⍝ try to...
Update SQL.dyalog
Update SQL.dyalog Connection warnings imply that conn was established, so the result of ConnectTo should show that (and not indicate failure as before)
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
60df8b13825b313059d0600aff26d8dadec616ed
Run.dyalog
Run.dyalog
 output←regexes(op Run args)input;from;to;options;lines;trans;Expand;repeat;s;r;last;fns;Quote;q;hasrepeat;postproc;combine :Trap 11 22 ⍝ accept filename or actual input input←input ⎕NTIE 0 :EndTrap :Trap 11 22 ⍝ accept filename or actual regex regexes←⊃⎕NGET regexes 1 :EndTrap repeat←⍎{×≢⍵:⍵ ⋄ '1'}a...
 output←regexes(op Run args)input;from;to;options;lines;trans;Expand;repeat;s;r;last;fns;Quote;q;hasrepeat;postproc;combine :Trap 11 22 ⍝ accept filename or actual input input←input ⎕NTIE 0 :EndTrap :Trap 11 22 ⍝ accept filename or actual regex regexes←⊃⎕NGET regexes 1 :EndTrap repeat←⍎{×≢⍵:⍵ ⋄ '1'}a...
Remove bad quotes. Use one-liner transformation function.
Remove bad quotes. Use one-liner transformation function.
APL
mit
abrudz/QuadRS
47d8438f9a4f45f6a7a16e4529081e54cab9b0b5
Utils/SQL.dyalog
Utils/SQL.dyalog
:Namespace SQL (⎕IO ⎕ML)←1 ∇ r←ConnectTo database;ind;ds;dsn;opts;rc;conx;pwd;user;ms;find ms←#.Boot.ms find←{(⍴⍺){⍵×⍺≥⍵}⍺⍳⊂⍵} r←601 'No datasources defined' :If 0<⍴{6::'' ⋄ ⍵.Datasources}ms ⍝ do we have Datasources defined? :If 0=ind←ms.Datasources.Name find database ⍝ try t...
:Namespace SQL (⎕IO ⎕ML)←1 ∇ r←ConnectTo database;ind;ds;dsn;opts;rc;conx;pwd;user;ms;find ms←#.Boot.ms find←{(⍴⍺){⍵×⍺≥⍵}⍺⍳⊂⍵} r←601 'No datasources defined' :If 0<⍴{6::'' ⋄ ⍵.Datasources}ms ⍝ do we have Datasources defined? :If 0=ind←ms.Datasources.Name find database ⍝ try to find it ...
Improve SQL.Do bind variable handling
Improve SQL.Do bind variable handling
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
75cffd24be205fa0c630dc47afa45b8535b31e69
src/prelude.apl
src/prelude.apl
⍬←() ⍝ ⍬ <=> 0⍴0 ⍝ ⍴⍬ <=> ,0 ⍝# ⍬←5 !!! ⍝ ⍳0 <=> ⍬ ⍝ ⍴0 <=> ⍬ ⍝ ⍬ <=> ⍬ ⍝ ⍬⍬ <=> ⍬ ⍬ ⍝ 1⍬2⍬3 <=> 1 ⍬ 2 ⍬ 3 ~←~⍠{(~⍺∊⍵)/⍺} ⍝ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"~"AEIOU" <=> 'BCDFGHJKLMNPQRSTVWXYZ' ⍝ 1 2 3 4 5 6~2 4 6 <=> 1 3 5 ⍝ "THIS IS TEXT"~" " <=> 'THISISTEXT' ⍝ "...
⍬←() ⍝ ⍬ <=> 0⍴0 ⍝ ⍴⍬ <=> ,0 ⍝# ⍬←5 !!! ⍝ ⍳0 <=> ⍬ ⍝ ⍴0 <=> ⍬ ⍝ ⍬ <=> ⍬ ⍝ ⍬⍬ <=> ⍬ ⍬ ⍝ 1⍬2⍬3 <=> 1 ⍬ 2 ⍬ 3 ~←~⍠{(~⍺∊⍵)/⍺} ⍝ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"~"AEIOU" <=> 'BCDFGHJKLMNPQRSTVWXYZ' ⍝ 1 2 3 4 5 6~2 4 6 <=> 1 3 5 ⍝ "THIS IS TEXT"~" " <=> 'THISISTEXT' ⍝ "...
Throw the correct errors from matrix inverse, as specified in the ISO standard.
Throw the correct errors from matrix inverse, as specified in the ISO standard.
APL
mit
fineline/apl,fineline/apl,fineline/apl,fineline/apl
57f9e3f63669bf89d774fc18bb035e0c515a45f6
MS3/Code/Templates/MiPageSample.dyalog
MS3/Code/Templates/MiPageSample.dyalog
:Class MiPageSample : #.MiPage ⍝ This is a template that "wraps" the page content by ⍝ - adding a header and footer ⍝ - adding a handler that will toggle the display of the web page and its APL source code ∇ {r}←Wrap;lang;server;controls;sp;c :Access Public :If 0∊⍴Get'nowrapper' ...
:Class MiPageSample : #.MiPage ⍝ This is a template that "wraps" the page content by ⍝ - adding a header and footer ⍝ - adding a handler that will toggle the display of the web page and its APL source code ∇ {r}←Wrap;lang;server;controls;sp;c :Access Public :If 0∊⍴Get'nowrapper' ...
Update links to Syncfusion samples from MiPageSample - they moved again...
Update links to Syncfusion samples from MiPageSample - they moved again...
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
bdaa59540e24802506761c9fc372d3ed302c064e
apl/iota999.apl
apl/iota999.apl
⍝ Using the ⍳ (iota) function to generate a set of ordered numbers in a 3D array ⍳ 9 9 9
⍝ Using the ⍳ (iota) function to generate a set of ordered numbers in a 3D array ⍳ 9 9 9 ⍝=> 0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 7 0 0 8 ⍝ 0 1 0 0 1 1 0 1 2 0 1 3 0 1 4 0 1 5 0 1 6 0 1 7 0 1 8 ⍝ 0 2 0 0 2 1 0 2 2 0 2 3 0 2 4 0 2 5 0 2 6 0 2 7 0 2 8 ⍝ 0 3 0 ...
Update iota999.apl
Update iota999.apl
APL
mit
classmember/proof_of_concept,classmember/proof_of_concept,classmember/proof_of_concept,classmember/proof_of_concept,classmember/proof_of_concept,classmember/proof_of_concept,classmember/proof_of_concept
b1e1cd58aacef486428905e6e97ffb7b47bb16b6
Extensions/SimpleSessions.dyalog
Extensions/SimpleSessions.dyalog
:Class SimpleSessions ⍝ Default Session Handler, used by the WebServer sample ⍝ Manages HTTP sessions using cookies ⍝ When a HTTP request arrives, checks to see if the session cookie is included and the session ⍝ is in the list of valid sessions. If it is, assign the Session property of the request. ⍝ If it isn't, cre...
:Class SimpleSessions ⍝ Default Session Handler, used by the WebServer sample ⍝ Manages HTTP sessions using cookies ⍝ When a HTTP request arrives, checks to see if the session cookie is included and the session ⍝ is in the list of valid sessions. If it is, assign the Session property of the request. ⍝ If it isn't, cre...
Fix to SimpleSessions.KillSessions
Fix to SimpleSessions.KillSessions
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
97401a3606d81bef4fc8e4505b036894b4eff883
MS3/Examples/SF/ejDateTimePickerAdvanced.dyalog
MS3/Examples/SF/ejDateTimePickerAdvanced.dyalog
:Class ejDateTimePickerAdvanced : MiPageSample ⍝ Control:: _SF.ejDateTimePicker ⍝ Description:: advance functionality. ⍝ Show 2 calendars to select reservation dates. ⍝ Display the time difference as result. ∇ Compose;today;fromidn;tbl;tr;td;head;todate;from;now;to :Access Public today←3↑now←⎕TS ...
:Class ejDateTimePickerAdvanced : MiPageSample ⍝ Control:: _SF.ejDateTimePicker ⍝ Description:: advance functionality. ⍝ Show 2 calendars to select reservation dates. ⍝ Display the time difference as result. ∇ Compose;today;fromidn;tbl;tr;td;head;todate;from;now;to :Access Public today←3↑now←⎕TS ...
format fixed
format fixed
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
7c438c0f3f4a8a4acef81384c8989f5204496475
MS3/Examples/Apps/ii.dyalog
MS3/Examples/Apps/ii.dyalog
:class ii :MiPageSample ⍝ Description:: Search the FinnAPL and Dyalog idiom lists ∇ Compose;fm;bn :Access public :If 0=⎕NC'idioms' idioms←⎕SE.SALT.Load'[ws]\MS3\Examples\Data\idioms -noname -nolink' :EndIf Add _.h1'Search Idiom Database' Add _.br ef←Add _....
:class ii :MiPageSample ⍝ Description:: Search the FinnAPL and Dyalog idiom lists ∇ Compose;fm;bn :Access public :If 0=⎕NC'idioms' idioms←⎕SE.SALT.Load'[ws]\MS3\Examples\Data\idioms -noname -nolink' :EndIf Add _.h1'Search Idiom Database' Add _.br ef←Add _....
Truncate long results for speedup.
ii: Truncate long results for speedup.
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
b527840ac4c14232374fe77b8c9a7c7340444d7b
Core/MiPage.dyalog
Core/MiPage.dyalog
:Class MiPage : #.HtmlPage ⍝∇:require =\HtmlPage.dyalog ⍝∇:require =\JSON.dyalog :Field Public _PageName←'' ⍝ Page file name :Field Public _PageDate←'' ⍝ Page saved date :field Public _Request ⍝ HTTPRequest :field Public _Scripts←'' :field Public _Styles←'' :field Public _CssReset...
:Class MiPage : #.HtmlPage ⍝∇:require =\HtmlPage.dyalog ⍝∇:require =\JSON.dyalog :Field Public _PageName←'' ⍝ Page file name :Field Public _PageDate←'' ⍝ Page saved date :field Public _Request ⍝ HTTPRequest :field Public _Scripts←'' :field Public _Styles←'' :field Public _CssReset...
remove MiPage stop
remove MiPage stop
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
74ba054cc43c3d960da1c4e74bfc13e4bb22d8c6
Run.dyalog
Run.dyalog
 output←regexes(op Run args)input;from;to;options;lines;Expand;repeat;s;r;last;fns;q;hasrepeat;postproc;combine;Quote;Nest;a;n output←⍬⊤⍬ ⍝ default result is empty matrix n←⎕UCS 10 ⍝ newline a←⎕UCS 39 ⍝ apostrofe ⍎'Nest←{⊂⍣(1=≡,⍵)⊢⍵}' ⍎'Quote←{a,a,⍨⍵/⍨1+⍵=a}' :Trap 11 22 ⍝ accept filename or actual input ...
∇ output←regexes(op Run args)input;from;to;options;lines;Expand;repeat;s;r;last;fns;q;hasrepeat;postproc;combine;Quote;Nest;a;n output←⍬⊤⍬ ⍝ default result is empty matrix n←⎕UCS 10 ⍝ newline a←⎕UCS 39 ⍝ apostrofe ⍎'Nest←{⊂⍣(1=≡,⍵)⊢⍵}' ⍎'Quote←{a,a,⍨⍵/⍨1+⍵=a}' :Trap 11 22 ⍝ accept filename or actual input ...
Prepend and append ∇ for stricter ⎕FIX
Prepend and append ∇ for stricter ⎕FIX
APL
mit
abrudz/QuadRS
85d38db1b4684277c2e9b80aec0520c46ddf7fcd
Utils/SQL.dyalog
Utils/SQL.dyalog
:Namespace SQL (⎕IO ⎕ML)←1 ∇ r←ConnectTo database;ind;ds;dsn;opts;rc;conx;pwd;user;ms;find ms←#.Boot.ms find←{(⍴⍺){⍵×⍺≥⍵}⍺⍳⊂⍵} r←601 'No datasources defined' :If 0<⍴{6::'' ⋄ ⍵.Datasources}ms ⍝ do we have Datasources defined? :If 0=ind←ms.Datasources.Name find database ⍝ try to find it ...
:Namespace SQL (⎕IO ⎕ML)←1 ∇ r←ConnectTo database;ind;ds;dsn;opts;rc;conx;pwd;user;ms;find ms←#.Boot.ms find←{(⍴⍺){⍵×⍺≥⍵}⍺⍳⊂⍵} r←601 'No datasources defined' :If 0<⍴{6::'' ⋄ ⍵.Datasources}ms ⍝ do we have Datasources defined? :If 0=ind←ms.Datasources.Name find database ⍝ try to find it ...
Update SQL.dyalog to handle null values and return better diagnostics
Update SQL.dyalog to handle null values and return better diagnostics
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
76f9eb4405a35e8a3f212e517c00be7d0db7c740
examples/6-queens.apl
examples/6-queens.apl
#!/usr/bin/env apl queens←{⎕IO ⎕ML←0 1 ⍝ The N-queens problem. search←{ ⍝ Search for all solutions. (⊂⍬)∊⍵:0⍴⊂⍬ ⍝ stitched: abandon this branch. 0=⍴⍵:rmdups ⍺ ⍝ all done: solution! hd←⊃⍵ ⍝ head... ...
#!/usr/bin/env apl queens←{ ⍝ The N-queens problem. search←{ ⍝ Search for all solutions. (⊂⍬)∊⍵:0⍴⊂⍬ ⍝ stitched: abandon this branch. 0=⍴⍵:rmdups ⍺ ⍝ all done: solution! hd←⊃⍵ ⍝ head... ...
Fix issue #30: remove misleading line of code.
Fix issue #30: remove misleading line of code.
APL
mit
fineline/apl,fineline/apl,fineline/apl,fineline/apl
764ae7472a6d00fca56d8f244254e7a05c33dd9a
Core/MiPage.dyalog
Core/MiPage.dyalog
:Class MiPage : #.HtmlPage ⍝∇:require =\HtmlPage.dyalog ⍝∇:require =\JSON.dyalog :Field Public _PageName←'' ⍝ Page file name :Field Public _PageDate←'' ⍝ Page saved date :field Public _Request ⍝ HTTPRequest :field Public _Scripts←'' :field Public _Styles←'' :field public _Serializ...
:Class MiPage : #.HtmlPage ⍝∇:require =\HtmlPage.dyalog ⍝∇:require =\JSON.dyalog :Field Public _PageName←'' ⍝ Page file name :Field Public _PageDate←'' ⍝ Page saved date :field Public _Request ⍝ HTTPRequest :field Public _Scripts←'' :field Public _Styles←'' :field public _Serializ...
Add MiPage.GetRaw
Add MiPage.GetRaw
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
8f40bd95601a5f0e1bee2a40787e3ec0e362c0a2
MS3/Code/MS3Server.dyalog
MS3/Code/MS3Server.dyalog
:Class MS3Server : MiServer ⍝ This is an example of a customized MiServer ⍝ The MiServer class exposes several overridable methods that can be customized by the user ⍝ In this case we customize the onServerLoad method ⍝ The ClassName parameter in the Server.xml configuration file is used to specify the customized clas...
:Class MS3Server : MiServer ⍝ This is an example of a customized MiServer ⍝ The MiServer class exposes several overridable methods that can be customized by the user ⍝ In this case we customize the onServerLoad method ⍝ The ClassName parameter in the Server.xml configuration file is used to specify the customized clas...
Upgrade message inculdes note of 15.0+ being free.
Upgrade message inculdes note of 15.0+ being free.
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
31522762e3e4a9e3ddfed315485fdaa02ff89d85
MS3/Examples/html/aSimple.dyalog
MS3/Examples/html/aSimple.dyalog
:class aSimple : MiPageSample ⍝ Control:: _html.a ⍝ Description:: Insert a hyperlink ∇ Compose :Access public Add 'Click ' 'href' 'http://www.dyalog.com/meet-team-dyalog.htm'Add _.a'here' Add ' to meet us.' ∇ :endclass
:class aSimple : MiPageSample ⍝ Control:: _html.a ⍝ Description:: Insert a hyperlink ∇ Compose :Access public Add'Click ' 'href=http://www.dyalog.com/meet-team-dyalog.htm'Add _.a'here' Add' to meet us.' ∇ :endclass
Fix to new ParseAttr syntax
Fix to new ParseAttr syntax
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
6054d202ca88d93d6604694a18e912e1747b485c
3-1.apl
3-1.apl
#!/usr/local/bin/apl -s 'Day 3: Perfectly Spherical Houses in a Vacuum' i ← (0 0) cmds ← ('<' '>' '^' 'v') dirs ← ((¯1 0) (1 0) (0 ¯1) (0 1)) houses ← ∪ (0 0) , i { ++\⍵ } { dirs[ti] ⊣ ti ← cmds ⍳ ⍵ } ⍞ ⍴ houses ⍝ the amount of houses to visit )OFF
#!/usr/local/bin/apl -s 'Day 3: Perfectly Spherical Houses in a Vacuum' cmds ← ('<' '>' '^' 'v') dirs ← ((¯1 0) (1 0) (0 ¯1) (0 1)) houses ← ∪ (0 0) , { ++\⍵ } { dirs[ti] ⊣ ti ← cmds ⍳ ⍵ } ⍞ ⍴ houses ⍝ the amount of houses to visit )OFF
Trim fat on apl nr 1
Trim fat on apl nr 1
APL
mit
profan/advent-of-code-2015,profan/advent-of-code-2015,profan/advent-of-code-2015
3cb01d3477c50c121d8ed0d42e44a13497ecca66
Utils/Strings.dyalog
Utils/Strings.dyalog
:Namespace Strings (⎕IO ⎕ML)←1 lower←'abcdefghijklmnopqrstuvwxyzáâãçèêëìíîïðòóôõùúûýàäåæéñöøü' upper←'ABCDEFGHIJKLMNOPQRSTUVWXYZÁÂÃÇÈÊËÌÍÎÏÐÒÓÔÕÙÚÛÝÀÄÅÆÉÑÖØÜ' ∇ r←lc r;m m←r∊upper (m/r)←lower[upper⍳m/r] ∇ ∇ r←uc r;m m←r∊lower (m/r)←upper[lower⍳m/r] ∇ vtom←{...
:Namespace Strings (⎕IO ⎕ML)←1 lower←'abcdefghijklmnopqrstuvwxyzáâãçèêëìíîïðòóôõùúûýàäåæéñöøü' upper←'ABCDEFGHIJKLMNOPQRSTUVWXYZÁÂÃÇÈÊËÌÍÎÏÐÒÓÔÕÙÚÛÝÀÄÅÆÉÑÖØÜ' ∇ r←lc r;m m←r∊upper (m/r)←lower[upper⍳m/r] ∇ ∇ r←uc r;m m←r∊lower (m/r)←upper[lower⍳m/r] ∇ vtom←{...
replace high minus by low
strings.commaFmt: replace high minus by low
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
a080a1f0541680ce1dfa5cea331de4fe0daef8f7
src/prelude.apl
src/prelude.apl
⍬←0⍴0 ⍝ ⍬ <=> 0⍴0 ⍝ ⍴⍬ <=> ,0 ⍝# ⍬←5 !!! ⍝ ⍳0 <=> ⍬ ⍝ ⍴0 <=> ⍬ ⍝ ⍬ <=> ⍬ ⍝ ⍬⍬ <=> ⍬ ⍬ ⍝ 1⍬2⍬3 <=> 1 ⍬ 2 ⍬ 3 ~←~⍠{(~⍺∊⍵)/⍺} ⍝ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"~"AEIOU" <=> 'BCDFGHJKLMNPQRSTVWXYZ' ⍝ 1 2 3 4 5 6~2 4 6 <=> 1 3 5 ⍝ "THIS IS TEXT"~" " <=> 'THISISTEXT' ⍝ ...
⍬←0⍴0 ⍝ ⍬ <=> 0⍴0 ⍝ ⍴⍬ <=> ,0 ⍝# ⍬←5 !!! ⍝ ⍳0 <=> ⍬ ⍝ ⍴0 <=> ⍬ ⍝ ⍬ <=> ⍬ ⍝ ⍬⍬ <=> ⍬ ⍬ ⍝ 1⍬2⍬3 <=> 1 ⍬ 2 ⍬ 3 ~←~⍠{(~⍺∊⍵)/⍺} ⍝ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"~"AEIOU" <=> 'BCDFGHJKLMNPQRSTVWXYZ' ⍝ 1 2 3 4 5 6~2 4 6 <=> 1 3 5 ⍝ "THIS IS TEXT"~" " <=> 'THISISTEXT' ⍝ ...
Revert "rm "0=⍴⍴⍵:"; the joys of being dimension-agnostic"
Revert "rm "0=⍴⍴⍵:"; the joys of being dimension-agnostic" This reverts commit c7ece6626849698c9480e23228bb2f48cd945f15. issue #67
APL
mit
fineline/apl,fineline/apl,fineline/apl,fineline/apl
ef0f87b2ddbd3cea27838cdc632008dd0a51e44b
MS3/Examples/Menuexample3.dyalog
MS3/Examples/Menuexample3.dyalog
:Class Menuexample3 : MiPageSample ⍝ Demonstrate the SyncFusion ejMenu widget ⎕ml←⎕io←1 ∇ r←Render;items;t;tmp;a;i;m;opt :Access Public ⍝ tmp←⎕XML∊example ⍝ i←a/⍳⍴a←tmp[;2]∊⊂,'a' ⋄ tmp[i-1;3]←tmp[i;3] ⋄ tmp←(~a)⌿tmp ⍝ items←↓⍉tmp[;1 3],⊂'' Add build m←Add _SF.ejMenu opt...
:Class Menuexample3 : MiPageSample ⍝ Demonstrate the SyncFusion ejMenu widget ⎕ml←⎕io←1 ∇ r←Render;items;t;tmp;a;i;m;opt :Access Public ⍝ tmp←⎕XML∊example ⍝ i←a/⍳⍴a←tmp[;2]∊⊂,'a' ⋄ tmp[i-1;3]←tmp[i;3] ⋄ tmp←(~a)⌿tmp ⍝ items←↓⍉tmp[;1 3],⊂'' Add build m←Add _SF.ejMenu opt...
complete script tag
complete script tag tag was missing
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
756dcb223aa06385c487ba370afbb5fdbd11c17c
HTML/_DC/Select.dyalog
HTML/_DC/Select.dyalog
:class Select : #._html.select ⍝ Description:: Dyalog Enhanced HTML select ⍝ Constructor:: [options [[selected] [prompt]]] ⍝ options - vector of options or 2 column matrix of displayed[;1] and returned[;2] values ⍝ selected - Boolean or integer array indicating pre-selected options(s) ⍝ prompt - first item to ...
:class Select : #._html.select ⍝ Description:: Dyalog Enhanced HTML select ⍝ Constructor:: [options [[selected] [prompt]]] ⍝ options - vector of options or 2 column matrix of displayed[;1] and returned[;2] values ⍝ selected - Boolean or integer array indicating pre-selected options(s) ⍝ prompt - first item to ...
Make _DC.Select.FormatOptions Public Shared
Make _DC.Select.FormatOptions Public Shared
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
0fcf18b9ec6206ee013e8b77df002b0cb64b36f6
MS3/QA/Examples/DC/FigureSimple.dyalog
MS3/QA/Examples/DC/FigureSimple.dyalog
 msg←Test dummy;fig fig←Find'fig' msg←(283 890≢fig.Size.(Height Width))/'figure size is not 283x890'
 msg←Test dummy;fig fig←Find'fig' msg←(~fig.Displayed∧0∧.≠fig.Size.(Height Width))/'figure not displayed'
Improve FigureSimple QA
Improve FigureSimple QA
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
87db57f12d3f2d9cd6b3b8585c08d57ce6548ca3
MS3/Examples/SF/ejButtonSimple.dyalog
MS3/Examples/SF/ejButtonSimple.dyalog
:Class ejButtonSimple : MiPageSample ⍝ Control:: _SF.ejButton ⍝ Description:: two buttons, one en/disables the other and another that displays an alert ∇ Compose :Access Public ⍝ The first button (b1) b1←'b1'Add _SF.ejButton'Toggle its state →' 'type'b1.Set'ej.ButtonType.Button' ...
:Class ejButtonSimple : MiPageSample ⍝ Control:: _SF.ejButton ⍝ Description:: two buttons, one en/disables the other and another that displays an alert ∇ Compose :Access Public ⍝ The first button (b1) b1←'b1'Add _SF.ejButton'Toggle its state →' 'type'b1.Set'ej.ButtonType.Button' ...
Remove stop in ejButtonSimple
Remove stop in ejButtonSimple
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
220c5d00a3d36ed40251a7629d982a2ae3198fc6
HTML/_JS/DataTable.dyalog
HTML/_JS/DataTable.dyalog
:Class DataTable : #._JQ._jqWidget ⍝ Description:: Enhanced HTML table using DataTables from https://www.datatables.net/ ⍝ Constructor:: [Data [CellAttr [HeaderRows [HeaderAttr [MakeCellIds [MakeRowIds]]]]] ⍝ Constructor arguments are identical to those for #._DC.Table ⍝ ⍝ Public Fields:: ⍝ Data -...
:Class DataTable : #._JQ._jqWidget ⍝ Description:: Enhanced searchable and reorderable HTML table ⍝ Constructor:: [Data [CellAttr [HeaderRows [HeaderAttr [MakeCellIds [MakeRowIds]]]]] ⍝ Notes:: Constructor arguments are identical to those for _.Table ⍝ Public Fields:: ⍝ Data - matrix of data to display in the t...
restructure of internal doc
DataTable: restructure of internal doc
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
8170e55d327e1da4c18be41c28acb809028131f4
HTML/_JS/DataTable.dyalog
HTML/_JS/DataTable.dyalog
:Class DataTable : #._JQ._jqWidget ⍝ Description:: Enhanced searchable and reorderable HTML table ⍝ Constructor:: [data [cellAttr [headerRows [headerAttr [makeCellIds [makeRowIds]]]]] ⍝ Note that constructor arguments are identical to those for Table ⍝ data - matrix of data to display in the table ⍝ cellAttr ...
:Class DataTable : #._JQ._jqWidget ⍝ Description:: Enhanced searchable and reorderable HTML table ⍝ Constructor:: [data [cellAttr [headerRows [headerAttr [makeCellIds [makeRowIds]]]]] ⍝ Note that constructor arguments are identical to those for Table ⍝ data - matrix of data to display in the table ⍝ cellAttr ...
Handle scalar yadcf.Filters
DataTable: Handle scalar yadcf.Filters
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
3d5d188f9add8bb811ab273dccdf1b3ba467f4c2
QA/SeleniumTests.dyalog
QA/SeleniumTests.dyalog
:Namespace SeleniumTests ∇ x←eis x ⍝ Enclose if simple :If (≡x)∊0 1 ⋄ x←,⊂,x ⋄ :EndIf ∇ ∇ r←lopFirst url ⍝ remove first segment of URL r←{⍵/⍨(1+'/'=1↑⍵)≤+\'/'=⍵}url ∇ ∇ r←Run1Test page;name;ref;Test ⍝ eg MS3Test '/QA/DC/InputGridSimple' Selenium.GoTo SITE,lopFirs...
:Namespace SeleniumTests ∇ x←eis x ⍝ Enclose if simple :If (≡x)∊0 1 ⋄ x←,⊂,x ⋄ :EndIf ∇ ∇ r←lopFirst url ⍝ remove first segment of URL r←{⍵/⍨(1+'/'=1↑⍵)≤+\'/'=⍵}url ∇ ∇ r←Run1Test page;name;ref;Test ⍝ eg MS3Test '/QA/DC/InputGridSimple' Selenium.GoTo SITE,lopFirs...
Test (Selenium) now allows specifying a port number after the Stop-On-Error Boolean (was always-8080).
Test (Selenium) now allows specifying a port number after the Stop-On-Error Boolean (was always-8080).
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
9502bca58493e8103e41498156690c859c717ff6
apl/iota999.apl
apl/iota999.apl
⍳ 9 9 9
⍝ Using the ⍳ (iota) function to generate a set of ordered numbers in a 3D array ⍳ 9 9 9
Update iota999.apl
Update iota999.apl
APL
mit
classmember/proof_of_concept,classmember/proof_of_concept,classmember/proof_of_concept,classmember/proof_of_concept,classmember/proof_of_concept,classmember/proof_of_concept,classmember/proof_of_concept
7b04dd8df888b490462e1c72d61e681105bfe074
HTML/_SF/ejdatepicker.dyalog
HTML/_SF/ejdatepicker.dyalog
:Class ejDatePicker : #._SF._ejWidget ⍝ Description:: Syncfusion DatePicker widget ⍝ Constructor:: [date [format]] ⍝ date - date in JavaScript format (see: http://www.w3schools.com/js/js_dates.asp) (default 3↑⎕TS) ⍝ format - (default 'yyyy/MM/dd') ⍝ Public Fields:: ⍝ Label - string of text to app...
:Class ejDatePicker : #._SF._ejWidget ⍝ Description:: Syncfusion DatePicker widget ⍝ Constructor:: [date [format]] ⍝ date - date in JavaScript format (see: http://www.w3schools.com/js/js_dates.asp) (default 3↑⎕TS) ⍝ format - (default 'yyyy/MM/dd') ⍝ Public Fields:: ⍝ Label - string of text to app...
Fix label creation syntax for ejDatePicker
Fix label creation syntax for ejDatePicker
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
1d349d4f6e80357667b60d55e3669aa2c2b7da57
Utils/dates.dyalog
Utils/dates.dyalog
:Namespace Dates (⎕ML ⎕IO)←1 ∇ r←CookieFmt date;day;date;mon ⍝ Format date for cookie expiry ⍝ "expires Mon, 09-Dec-2002 13:46:00 GMT" day←(7 3⍴'MonTueWedThuFriSatSun')[WeekDay date;] mon←(12 3⍴'janfebmaraprmayjunjulaugsepoctnovdec')[2⊃date;] r←,('<',day,', >,ZI2,<-'...
:Namespace Dates (⎕ML ⎕IO)←1 ∇ r←CookieFmt date;day;date;mon ⍝ Format date for cookie expiry ⍝ "expires Mon, 09-Dec-2002 13:46:00 GMT" day←(7 3⍴'MonTueWedThuFriSatSun')[WeekDay date;] mon←(12 3⍴'janfebmaraprmayjunjulaugsepoctnovdec')[2⊃date;] r←,('<',day,', >,ZI2,<-'...
Make Dates.ParseTime work with scalar argument
Make Dates.ParseTime work with scalar argument
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
91bc376e581632a860dfbebcd4f1bd36ee0cd859
Run.dyalog
Run.dyalog
 output←regexes(op Run args)input;from;to;options;lines;trans;Expand;repeat;s;r :Trap 11 22 ⍝ accept filename or actual input input←input ⎕NTIE 0 :EndTrap :Trap 11 22 ⍝ accept filename or actual regex regexes←⊃⎕NGET regexes 1 :EndTrap repeat←⍎{×≢⍵:⍵ ⋄ '1'}args∩'≡',⎕D ⍝ extract repetition, if any, els...
 output←regexes(op Run args)input;from;to;options;lines;trans;Expand;repeat;s;r;last;fns;Quote;q;hasrepeat;postproc;combine :Trap 11 22 ⍝ accept filename or actual input input←input ⎕NTIE 0 :EndTrap :Trap 11 22 ⍝ accept filename or actual regex regexes←⊃⎕NGET regexes 1 :EndTrap repeat←⍎{×≢⍵:⍵ ⋄ '1'}a...
Allow postproc functions. Accept ? to display APL expression. Proper error messages.
Allow postproc functions. Accept ? to display APL expression. Proper error messages.
APL
mit
abrudz/QuadRS
9cc2e2dbac8a21d22dab9a799b5e66a87ba8c478
Run.dyalog
Run.dyalog
 output←regexes(op Run args)input;from;to;options;lines;trans;Expand;repeat;s;r :Trap 11 22 ⍝ accept filename or actual input input←input ⎕NTIE 0 :EndTrap :Trap 11 22 ⍝ accept filename or actual regex regexes←⊃⎕NGET regexes 1 :EndTrap repeat←⍎{×≢⍵:⍵ ⋄ '1'}args∩'≡',⎕D ⍝ extract repetition, if any, els...
 output←regexes(op Run args)input;from;to;options;lines;trans;Expand;repeat;s;r :Trap 11 22 ⍝ accept filename or actual input input←input ⎕NTIE 0 :EndTrap :Trap 11 22 ⍝ accept filename or actual regex regexes←⊃⎕NGET regexes 1 :EndTrap repeat←⍎{×≢⍵:⍵ ⋄ '1'}args∩'≡',⎕D ⍝ extract repetition, if any, els...
Replace dummy string with actual variable name
Replace dummy string with actual variable name
APL
mit
abrudz/QuadRS
58740171f4b5f40819b69972297295e7cf9330d4
MS3/Documentation/DyalogAPIs/WidgetDoc.dyalog
MS3/Documentation/DyalogAPIs/WidgetDoc.dyalog
:Class WidgetDoc : MiPageTemplate ∇ Compose;ns;widget;doc :Access public (ns widget)←Get'namespace widget' Add _.StyleSheet'/Styles/widgetDoc.css' doc←ns Document widget :Select doc :Case ¯1 (Add _.h3('Namespace "',ns,'" not found.')).Style'color' 'red' :Case ¯2...
:Class WidgetDoc : MiPageTemplate ∇ Compose;ns;widget;doc;t;opts;og :Access public Add _.StyleSheet'/Styles/widgetDoc.css' (ns widget)←Get'namespace widget' :If 0∊⍴widget Add _.h3'Select widget' opts←'onchange="window.open(this.value,''this'');this.selectedIndex=0"'Add ...
Resolve conflict
Resolve conflict
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
a887047208b3c7cbdc9ae9d0502fb19b234d88aa
Extensions/Logger.dyalog
Extensions/Logger.dyalog
:Class Logger ⍝ Logs HTTP requests ⎕ML←1 :field public instance Active←0 :field private instance Directory←'' :field private instance Interval←10 ⍝ write cache interval in seconds :field private instance TieNo←⍬ :field private instance Cache←'' :field private instance Prefix←'' :fiel...
:Class Logger ⍝ Logs HTTP requests ⎕ML←1 :field public instance Active←0 :field private instance Directory←'' :field private instance Interval←10 ⍝ write cache interval in seconds :field private instance TieNo←⍬ :field private instance Cache←'' :field private instance Prefix←'' :fiel...
Add debugging information to Logger.Log
Add debugging information to Logger.Log
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
78f251d5ca09ae7c61008604ce5c37224cfc647d
MS3/Code/Templates/MiPageSample.dyalog
MS3/Code/Templates/MiPageSample.dyalog
:Class MiPageSample : #.MiPage ⍝ This is a template that "wraps" the page content by ⍝ - adding a header and footer ⍝ - adding a handler that will toggle the display of the web page and its APL source code ∇ {r}←Wrap;lang;server;src;c :Access Public :If 0∊⍴Get'nowrapper' serve...
:Class MiPageSample : #.MiPage ⍝ This is a template that "wraps" the page content by ⍝ - adding a header and footer ⍝ - adding a handler that will toggle the display of the web page and its APL source code :Field Public _Sessioned←0 ∇ {r}←Wrap;lang;server;src;c :Access Public :If 0...
Make MS3 site page unsessioned
Make MS3 site page unsessioned
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
05b308db282b0f8a5b61e6ce144c5c564db3fe46
MS3/Examples/HTML/abbrsample.dyalog
MS3/Examples/HTML/abbrsample.dyalog
:class abbrsample: MiPage ⍝ Control:: HTML.abbr ⍝ Description:: this is an example of use of abbr which allows you to display text when hovering over an area ⍝ ⍝ This is an example of using the HTML 'abbr' element. ∇ Compose :Access public ⍝ We simply display the text 'Hover over THIS to reveal.' ...
:class abbrsample: MiPage ⍝ Control:: HTML.abbr ⍝ Description:: this is an example of use of abbr which allows you to display text when hovering over an area ⍝ This is an example of using the HTML 'abbr' element. ∇ Compose :Access public ⍝ We simply display the text 'Hover over THIS to reveal.' ...
Remove empty comment that messes up the index page
Remove empty comment that messes up the index page
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
a9ecd22e0a15965edb1eb43229d10a8737c86f72
MS3/Code/Templates/MiPageSample.dyalog
MS3/Code/Templates/MiPageSample.dyalog
:Class MiPageSample : #.MiPage ⍝ This is a template that "wraps" the page content by ⍝ - adding a header and footer ⍝ - adding a handler that will toggle the display of the web page and its APL source code ∇ {r}←Wrap;lang;server;c;src;ctrlsdiv :Access Public :If 0∊⍴Get'nowrapper' ...
:Class MiPageSample : #.MiPage ⍝ This is a template that "wraps" the page content by ⍝ - adding a header and footer ⍝ - adding a handler that will toggle the display of the web page and its APL source code ∇ {r}←Wrap;lang;server;c;src;ctrlsdiv :Access Public :If 0∊⍴Get'nowrapper' ...
Use 'JQuery' for big D. Controls info box now always links to WidgetDoc.
MiPageSample: Use 'JQuery' for big D. Controls info box now always links to WidgetDoc.
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
dc1d672b459c800ca19da6abf8c253c922c098ba
examples/dfns/queens.apl
examples/dfns/queens.apl
queens←{⎕IO ⎕ML←0 1 ⍝ The N-queens problem. search←{ ⍝ Search for all solutions. (⊂⍬)∊⍵:0⍴⊂⍬ ⍝ stitched: abandon this branch. 0=⍴⍵:rmdups ⍺ ⍝ all done: solution! hd←⊃⍵ ⍝ head... tl←1↓⍵ ...
Add dfns queens example.
Add dfns queens example.
APL
mit
fineline/apl,fineline/apl,fineline/apl,fineline/apl
ecdd636140fb17b3e3737e51154e133adf106d2b
Utils/dates.dyalog
Utils/dates.dyalog
:Namespace Dates (⎕ML ⎕IO)←1 ∇ r←CookieFmt date;day;date;mon ⍝ Format date for cookie expiry ⍝ "expires Mon, 09-Dec-2002 13:46:00 GMT" day←(7 3⍴'MonTueWedThuFriSatSun')[WeekDay date;] mon←(12 3⍴'janfebmaraprmayjunjulaugsepoctnovdec')[2⊃date;] r←,('<',day,', >,ZI2,<-'...
:Namespace Dates (⎕ML ⎕IO)←1 ∇ r←CookieFmt date;day;date;mon ⍝ Format date for cookie expiry ⍝ "expires Mon, 09-Dec-2002 13:46:00 GMT" day←(7 3⍴'MonTueWedThuFriSatSun')[WeekDay date;] mon←(12 3⍴'janfebmaraprmayjunjulaugsepoctnovdec')[2⊃date;] r←,('<',day,', >,ZI2,<-'...
Fix to Dates.HttpDate
Fix to Dates.HttpDate
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
b686026f4993f3934100324bb9a4cc593f06d434
shell/cgi.apl
shell/cgi.apl
#!/usr/local/bin/apl --script NEWLINE ← ⎕UCS 10 HEADERS ← 'Content-Type: text/plain', NEWLINE HEADERS ⍝ ⎕←HEADERS ⍝ ⍕⎕TS )OFF ⍝ testVars←'FUCKYEAH' ⍝ ≠\~(testVars ∊ 'AEIOU') ⍝ (124 × 4)≠(+/124 124 124) ⍝ testVars ∊ '<>'
Add boilerplate APL script to serve CGI webpages
Add boilerplate APL script to serve CGI webpages I can no longer tell if I've gone insane, or I've just become bored with web development. Probably a collusion of both. Either way, getting this script working required some changes in the GNU APL preferences file (interpreter built from source: v1.5 / SVN revision 694...
APL
isc
Alhadis/Snippets,Alhadis/Snippets,Alhadis/Snippets,Alhadis/Snippets,Alhadis/Snippets
46b0ad750ab11e25ba6cc629b3335078830b299d
Utils/HTTPCommand.dyalog
Utils/HTTPCommand.dyalog
:Class HTTPCommand ⍝ Issue an HTTP Command ⍝ Public Fields are: ⍝ Command - the HTTP command to issue, typically 'GET' 'POST' 'PUT etc ⍝ URL - the URL to direct the command at ⍝ format is: [HTTP[S]://][user:pass@]url[:port][/page[?params]] ⍝ Params - the parameters to pass with the command ...
Add /Utils/HTTPCommand
Add /Utils/HTTPCommand
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
ddd7e517cff3840d82423e3ceac62cb59fcd20d4
Utils/FilesAndDirs.dyalog
Utils/FilesAndDirs.dyalog
:Class FilesAndDirs ⍝ This class exists solely in support of MarkAPL from APLTeam ⍝ It provides comparable functionality to the FilesAndDirs class from https://github.com/aplteam/filesanddirs ⍝ for 2 methods - NormalizePath and Exists (⎕ML ⎕IO)←1 1 ∇ r←{expand}NormalizePath f :Access public shared ...
Create scaled down FilesAndDirs class so the new version of MarkAPL wll work.
Create scaled down FilesAndDirs class so the new version of MarkAPL wll work.
APL
mit
Dyalog/MiServer,Dyalog/MiServer,Dyalog/MiServer
8336dc33e410982bb77dad5d36e03e33a8b2fedd
samples/APL/UT.dyalog
samples/APL/UT.dyalog
:NameSpace UT sac ← 0 expect_orig ← expect ← ⎕NS⍬ exception ← ⍬ nexpect_orig ← nexpect ← ⎕NS⍬ ∇ {Z}←{Conf}run Argument;PRE_test;POST_test;TEST_step;COVER_step;FromSpace load_display_if_not_already_loaded load_salt_scripts_into_current_namespace_if_configured FromSpac...
Add sample .dyalog file for file type APL
Add sample .dyalog file for file type APL Taken from https://github.com/Gianfrancoalongi/APLUnit/blob/master/UT.dyalog
APL
mit
alitalia/linguist,JJ/linguist,douglas-larocca/linguist,c-lipka/linguist,anhongyue/test222,MostAwesomeDude/linguist,blakeembrey/linguist,Rockyspade/linguist,cybernet14/linguist,FStarLang/linguist,stanhu/linguist,sebgod/linguist,pcantrell/linguist,jjatria/linguist,erkyrath/linguist,CoderXpert/linguist,nburkley/linguist,a...
0bdc9fa698b18e29e4e1a0c880fb8be8e8a69301
host/SendImessage.applescript
host/SendImessage.applescript
#! /usr/bin/osascript on run argv tell application "Messages" send (item 2 of argv) to buddy (item 1 of argv) of (service 1 whose service type is iMessage) end tell end run
#! /usr/bin/osascript on run argv tell application "Messages" send (item 2 of argv) to buddy (item 1 of argv) of (first service whose service type is iMessage) end tell end run
Use english syntax
Use english syntax
AppleScript
mit
chainsawsalad/imessage-liberator,chainsawsalad/imessage-liberator,chainsawsalad/imessage-liberator
36c34b538edb8a4e8d5eabb83cdac04078676d91
lib/nehm/applescripts/add_track_to_playlist.applescript
lib/nehm/applescripts/add_track_to_playlist.applescript
on run argv tell application "iTunes" set p to first item of argv set a to (p as POSIX file) add a to playlist (second item of argv) end tell end run
on run argv set posixFile to first item of argv set playlistName to second item of argv tell application "iTunes" set p to posixFile set a to (p as POSIX file) add a to playlist playlistName end tell end run
Add explanation of arguments in AppleScript scripts
Add explanation of arguments in AppleScript scripts
AppleScript
mit
bogem/nehm
1ee633a9f5f3897c095c4bceca23a1c807d37742
AppleScripts/Hammerspoon-scpt/bluetooth_toggle.applescript
AppleScripts/Hammerspoon-scpt/bluetooth_toggle.applescript
-- Symlinked into ~/Library/Services/ dir to be run as an Apple Service -- Using "blueutil" installed at: set blueutilpath to "/usr/local/bin/blueutil" -- Toggle Bluetooth off set sb to last word of (do shell script blueutilpath & " status") if sb is "on" then do shell script blueutilpath & " off" return "Bluetooth ...
-- Symlinked into ~/Library/Services/ dir to be run as an Apple Service -- Using "blueutil" installed at: set blueutilpath to "/usr/local/bin/blueutil" -- Might work? The blueutil API changed in version 2 set sb to (do shell script blueutilpath) if "Power: 1" in sb then do shell script blueutilpath & " -p off" retur...
update blueutil version to v ^2
Fix: update blueutil version to v ^2
AppleScript
mit
KyleKing/My-Programming-Sketchbook,KyleKing/My-Programming-Sketchbook,KyleKing/My-Programming-Sketchbook,KyleKing/My-Programming-Sketchbook,KyleKing/My-Programming-Sketchbook,KyleKing/My-Programming-Sketchbook,KyleKing/My-Programming-Sketchbook,KyleKing/My-Programming-Sketchbook,KyleKing/My-Programming-Sketchbook
3da4ae8cce298ea5459f61c2cd8e06b7439a1063
support/template.applescript
support/template.applescript
on run (volumeName) tell application "Finder" tell disk (volumeName as string) open set theXOrigin to WINX set theYOrigin to WINY set theWidth to WINW set theHeight to WINH set theBottomRightX to (theXOrigin + theWidth) set theBottomRightY to (theYOrigin + theHeight) set dsStore to "\...
on run (volumeName) tell application "Finder" tell disk (volumeName as string) open set theXOrigin to WINX set theYOrigin to WINY set theWidth to WINW set theHeight to WINH set theBottomRightX to (theXOrigin + theWidth) set theBottomRightY to (theYOrigin + theHeight) set dsStore to "\...
Make sure all hidden files are outside the background image
Make sure all hidden files are outside the background image If the user enabled Mac OS X to show hidden files then when mounted the generated DMG package may show some of them within the bounds of the background image. This change makes sure that all items in the DMG package are moved to a position outside the bounds...
AppleScript
mit
andreyvit/create-dmg,mrpau/create-dmg,digitalreasoning/create-dmg,strukturag/create-dmg,heavilessrose/create-dmg,andreyvit/create-dmg,heavilessrose/create-dmg,mrpau/create-dmg,heavilessrose/create-dmg,andrey-str/create-dmg,digitalreasoning/create-dmg,andreyvit/create-dmg,mrpau/create-dmg,strukturag/create-dmg,struktura...
9c29d52bd0c27f84251adf023ad80993595be743
Release/dmg_growl.applescript
Release/dmg_growl.applescript
on run -- for testing in script editor process_disk_image("Growl", "/Users/evands/growl/Release/Artwork") end run on process_disk_image(volumeName, artPath) tell application "Finder" tell disk volumeName open tell container window set current view to icon view set toolbar visible to false set sta...
on run -- for testing in script editor process_disk_image("Growl", "/Users/evands/growl/Release/Artwork") end run on process_disk_image(volumeName, artPath) tell application "Finder" tell disk volumeName open tell container window set current view to icon view set toolbar visible to false set sta...
Set the bounds of the disk image volume window. I'm not sure why this was commented out. Not only have I uncommented it, I also changed the value.
Set the bounds of the disk image volume window. I'm not sure why this was commented out. Not only have I uncommented it, I also changed the value.
AppleScript
bsd-3-clause
tectronics/growl,an0nym0u5/growl,tectronics/growl,xhruso00/growl,morganestes/morganestes-growl,ylian/growl,chashion/growl,ylian/growl,nkhorman/archive-growl,an0nym0u5/growl,nagyistoce/growl,chashion/growl,an0nym0u5/growl,SalrJupiter/growl,tectronics/growl,xhruso00/growl,SalrJupiter/growl,nochkin/growl,timbck2/growl,nag...
13e6daaff29d31e342dae59e00f3a1652245e576
bin/spotify.scpt
bin/spotify.scpt
if application "Spotify" is running then tell application "Spotify" if exists current track then set theName to the name of the current track set theArtist to the artist of the current track try return "♫ " & theName & " - " & theArtist on error err end try end if end ...
#!/usr/bin/osascript tell application "Spotify" if it is running then if player state is playing then set track_name to name of current track set artist_name to artist of current track if artist_name > 0 # If the track has an artist set and is therefore most likely a song rather than a...
fix spotify
fix spotify
AppleScript
bsd-3-clause
ankoh/dotfiles
da076f89b13cbbf60f0de02c35960cbb536ec958
utils/launch_in_iterm.applescript
utils/launch_in_iterm.applescript
set test_cmd to system attribute "TEST_CMD" tell application "iTerm" activate (* set t to (make new terminal) *) -- make a new terminal -- set myterm to (current terminal) set myterm to (make new terminal) -- talk to the new terminal tell myterm -- make a new session ...
-- Updated launcher for iTerm 3 beta set test_cmd to system attribute "TEST_CMD" tell application "iTerm" activate if (count of windows) = 0 then set t to (create window with default profile) else set t to current window end if tell t tell current session write t...
update applescript for iTerm 3 beta
fix(launch_in_iterm): update applescript for iTerm 3 beta
AppleScript
mit
asfaltboy/Sublime-Test-Plier,asfaltboy/Sublime-Test-Plier,asfaltboy/SublimeTestPlier
a249e9637caa7a9c479d05a64ab05f84aa0ab38b
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 15 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- -- workflow folders property libraryFolder : (path to library fol...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 15 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- -- workflow folders property libraryFolder : (path to library fol...
Remove obsolete fileWrite() handler
Remove obsolete fileWrite() handler
AppleScript
mit
caleb531/play-song,caleb531/play-song
77adc261b070ce81c99ade972413bdcc94a7eced
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
Use Alfred 3 cache folder
Use Alfred 3 cache folder
AppleScript
mit
caleb531/play-song,caleb531/play-song
1ea0ec81dc1f4ebcd8c9ddac8950336bff8bf1a3
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
Fix bug where search would yield duplicate results
Fix bug where search would yield duplicate results
AppleScript
mit
caleb531/play-song,caleb531/play-song
2dd417c1bec7abb4228c407b6fac2bd32a90110b
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
Switch from XML to JSON for results feedback
Switch from XML to JSON for results feedback
AppleScript
mit
caleb531/play-song,caleb531/play-song
0efd6d52ba59d8f7cc024ae005d6fabe8680cdbf
macosx/scripts/iTunes/mobile-speakers.applescript
macosx/scripts/iTunes/mobile-speakers.applescript
script remoteSpeakerFinder global the_bwindow, the_state -- Find the remote speakers button on findCorrectButton() tell application "System Events" tell process "iTunes" set the_window to (get window "iTunes") set in_buttons to (get buttons of the_window) repeat with a_button in in_buttons ...
script remoteSpeakerFinder global the_bwindow, the_state -- Find the remote speakers button on findCorrectButton() tell application "System Events" tell process "iTunes" set the_window to (get window "iTunes") set in_buttons to (get buttons of the_window) repeat with a_button in in_buttons ...
Update for iTunes 10.1.2
Update for iTunes 10.1.2
AppleScript
bsd-3-clause
pjones/emacsrc
0dfeb53c383b10b43c2c40b9d9c69e761db91081
QuickStats/QuickStats.applescript
QuickStats/QuickStats.applescript
property pTitle : "OmniFocus: Quick Stats" property pVersion : "2.07.brett" property pstrDBPath : "$HOME/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2" property pstrMinOSX : "10.9" property pTimeOut : 20 -- Original version: https://github.com/RobTrew/tree...
property pTitle : "OmniFocus: Quick Stats" property pVersion : "2.07.brett" property pstrDBPath : "$HOME/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2" property pstrMinOSX : "10.9" property pTimeOut : 20 -- Original version: https://github.com/RobTrew/tree...
add a summary section
add a summary section
AppleScript
apache-2.0
brettporter/omnifocus-tools
03e79121376c1776653bb1a70180cc1f58ef1324
autoload/applescript/iterm.scpt
autoload/applescript/iterm.scpt
-- execute_iterm.scpt -- last change: 19 Jan 2013 --- -- this script require an argument that represent the command to execute on run argv set command to (item 1 of argv) tell application "iTerm" try set mysession to current session of current terminal on error se...
-- execute_iterm.scpt -- last change: 19 Jan 2013 --- -- this script require an argument that represent the command to execute on run argv set command to (item 1 of argv) tell application "iTerm" try set mysession to current session of current terminal on error set my...
Change session name to 'rspec'
Change session name to 'rspec'
AppleScript
mit
chautoni/tube.vim
33c600d81ed29d18634ed92dac0f16d9b5f4def1
status.applescript
status.applescript
tell application "Finder" set json_path to file "json.scpt" of folder of (path to me) end tell set json to load script (json_path as alias) on is_running(appName) tell application "System Events" to (name of processes) contains appName end is_running set nl to " " set reply to json's createDict() if is_running("He...
tell application "Finder" set json_path to file "json.scpt" of folder of (path to me) end tell set json to load script (json_path as alias) on is_running(appName) tell application "System Events" to (name of processes) contains appName end is_running set reply to json's createDict() if is_running("Hermes") then re...
remove unused newline variable
remove unused newline variable
AppleScript
mit
winny-/HermesRemote,winny-/HermesRemote
a9ec3c8e94c22bdb296970a7f7a4297a80f02d45
bin/viscosity.applescript
bin/viscosity.applescript
#!/usr/bin/osascript tell application "Viscosity" if the state of the first connection is not "Connected" then connect the first connection repeat until state of the first connection is "Connected" delay 1 end repeat end if end tell
#!/usr/bin/osascript try tell application "Viscosity" if the state of the first connection is not "Connected" then connect the first connection repeat until state of the first connection is "Connected" delay 1 end repeat end if end tell on error tell me to quit end try
handle viscosity errors more gracefully
handle viscosity errors more gracefully
AppleScript
mit
kfox/dotfiles,kfox/dotfiles,kfox/dotfiles
7624fbc0053bb4f97f1af4e4ef0d826b470cf435
lib/scripts/get_state.applescript
lib/scripts/get_state.applescript
tell application "Spotify" set cstate to "{" set cstate to cstate & "\"track_id\": \"" & current track's id & "\"" set cstate to cstate & ",\"volume\": " & sound volume set cstate to cstate & ",\"position\": " & player position set cstate to cstate & ",\"state\": \"" & player state & "\"" set cstate to csta...
on replace_chars(this_text, search_string, replacement_string) set AppleScript's text item delimiters to the search_string set the item_list to every text item of this_text set AppleScript's text item delimiters to the replacement_string set this_text to the item_list as string set AppleScript's text item del...
Fix get state for locales that have commas as decimal delimiters
Fix get state for locales that have commas as decimal delimiters When your current set locale uses "," as decimal delimiter, AppleScript will automatically use this when you convert the number to a string. This will break the JSON parsing for the callback, as "," is invalid when not in quotes.
AppleScript
mit
andrehaveman/spotify-node-applescript
c7f2827b9a9923cf0ce0e07e6762feb40c67941e
Filterer.applescript
Filterer.applescript
on run tell application "BibDesk" try set alertResult to display alert ("Really remove all linked files and private notes from " & name of first document as string) & "?" buttons {"Cancel", "OK"} default button "OK" cancel button "Cancel" as warning if button returned of alertResult is "OK" then save f...
on run tell application "BibDesk" try set alertResult to display alert ("Really remove all linked files and private notes from " & name of first document as string) & "?" buttons {"Cancel", "OK"} default button "OK" cancel button "Cancel" as warning if button returned of alertResult is "OK" then set th...
Simplify filterer code so it actually works.
Simplify filterer code so it actually works.
AppleScript
mit
kurtraschke/htmlbib,kurtraschke/htmlbib
8caa4cba5542dfb477b6fa61daef1d8a63e01b78
itunes-concatenator/itunes-concatenator/DASAppDelegate.applescript
itunes-concatenator/itunes-concatenator/DASAppDelegate.applescript
-- -- DASAppDelegate.applescript -- itunes-concatenator -- -- Created by David Schlachter on 2014-08-26. -- Copyright (c) 2014 Red Eft Software. All rights reserved. -- -- via http://macscripter.net/viewtopic.php?pid=173787 ; apparently needed for using arrays script DASAppDelegate property parent : class "NSObj...
-- -- DASAppDelegate.applescript -- itunes-concatenator -- -- Created by David Schlachter on 2014-08-26. -- Copyright (c) 2014 Red Eft Software. All rights reserved. -- -- via http://macscripter.net/viewtopic.php?pid=173787 ; apparently needed for using arrays script DASAppDelegate property parent : class "NSObj...
Update the metadata variables from user input
Update the metadata variables from user input
AppleScript
bsd-2-clause
davidschlachter/itunes-concatenator,davidschlachter/itunes-concatenator
f26210bedca6c0696988d55564d89da2a6932fe9
Extras/GrowlAction/main.applescript
Extras/GrowlAction/main.applescript
-- main.applescript -- GrowlAction on run {input_items, parameters} set the output_items to {} set the notification_title to (|notificationTitle| of parameters) as string set the notification_description to (|notificationDescription| of parameters) as string set the notification_priority to (priority of parameters...
-- main.applescript -- GrowlAction on run {input_items, parameters} set the output_items to {} set the notification_title to (|notificationTitle| of parameters) as string set the notification_description to (|notificationDescription| of parameters) as string set the notification_priority to (priority of parameters...
Fix the Automator action. The ?in bundle with identifier? parameter doesn't exist on my 10.5.5 machine (for some reason, even though the AppleScript Studio Release Notes claim it has since Tiger), which breaks compilation of the action's main script. We don't call the function that uses that phantom parameter, anyway, ...
Fix the Automator action. The ?in bundle with identifier? parameter doesn't exist on my 10.5.5 machine (for some reason, even though the AppleScript Studio Release Notes claim it has since Tiger), which breaks compilation of the action's main script. We don't call the function that uses that phantom parameter, anyway, ...
AppleScript
bsd-3-clause
timbck2/growl,timbck2/growl,coltonfisher/coltonfisher-growl,Shalaco/shalzers-growl,chashion/growl,morganestes/morganestes-growl,Shalaco/shalzers-growl,an0nym0u5/growl,nochkin/growl,nochkin/growl,nagyistoce/growl,coltonfisher/coltonfisher-growl,xhruso00/growl,nagyistoce/growl,morganestes/morganestes-growl,nochkin/growl,...
913f8dea1b8fc2b131ac03808701f47c5bd80868
Extras/GrowlAction/main.applescript
Extras/GrowlAction/main.applescript
-- main.applescript -- GrowlAction on run {input_items, parameters} set the output_items to {} set the notification_title to (|notificationTitle| of parameters) as string set the notification_description to (|notificationDescription| of parameters) as string set the notification_priority to (priority of parameters...
-- main.applescript -- GrowlAction on run {input_items, parameters} set the output_items to {} set the notification_title to (|notificationTitle| of parameters) as string set the notification_description to (|notificationDescription| of parameters) as string set the notification_priority to (priority of parameters...
Fix the Automator action. The “in bundle with identifier” parameter doesn't exist on my 10.5.5 machine (for some reason, even though the AppleScript Studio Release Notes claim it has since Tiger), which breaks compilation of the action's main script. We don't call the function that uses that phantom parameter, anyway, ...
Fix the Automator action. The “in bundle with identifier” parameter doesn't exist on my 10.5.5 machine (for some reason, even though the AppleScript Studio Release Notes claim it has since Tiger), which breaks compilation of the action's main script. We don't call the function that uses that phantom parameter, anyway, ...
AppleScript
bsd-3-clause
PersonifyInc/growl,PersonifyInc/growl,incbee/Growl,incbee/Growl,PersonifyInc/growl,incbee/Growl,PersonifyInc/growl,incbee/Growl,PersonifyInc/growl,incbee/Growl
1f58ca688fd098222fd21d951ea7aa15e87cf0ea
setup/set-terminal-theme.applescript
setup/set-terminal-theme.applescript
(* This script is adapted from https://github.com/mathiasbynens/dotfiles/blob/master/.macos. I have mainly added more explicit handling of the path to the custom theme file and the ability to set the font. *) tell application "Terminal" local allOpenedWindows local initialOpenedWindows local win...
(* This script is adapted from https://github.com/mathiasbynens/dotfiles/blob/master/.macos. I have mainly added more explicit handling of the path to the custom theme file and the ability to set the font. *) tell application "Terminal" local allOpenedWindows local initialOpenedWindows local win...
Set terminal font to source code pro.
Set terminal font to source code pro.
AppleScript
mit
adriantrunzo/dotfiles
285dc3ae01f3c7aba05dd03136b0520a227a6964
iTerm2FinderButton.app/Contents/Resources/Scripts/main.scpt
iTerm2FinderButton.app/Contents/Resources/Scripts/main.scpt
FasdUAS 1.101.10 k i I 0 openiniterm openIniTerm  o 0 thefolder theFolder O) k(   r  I .Itrmnwwnnullnull o 0t l ...
FasdUAS 1.101.10 k i I 0 openiniterm openIniTerm  o 0 thefolder theFolder OH kG   r  1  Crwn o 0t Q * O  I ...
Create a new tab when iTerm already has a window, otherwise create a new window
Create a new tab when iTerm already has a window, otherwise create a new window
AppleScript
mit
lexrus/LTFinderButtons
e33f82284f6d4740d517ad38c162de971f99a918
Uninstall.applescript
Uninstall.applescript
property stdout : "" on run set newline to ASCII character 10 set stdout to stdout & " shutdown TotalFinderCrashWatcher ..." & newline try do shell script "killall -SIGINT TotalFinderCrashWatcher" with administrator privileges on error set stdout to stdout & " TotalFinderCrashWatcher.com not running" & ne...
property stdout : "" on run set newline to ASCII character 10 set stdout to stdout & " shutdown TotalFinderCrashWatcher ..." & newline try do shell script "killall -SIGINT TotalFinderCrashWatcher" with administrator privileges on error set stdout to stdout & " TotalFinderCrashWatcher not running" & newlin...
fix a typo in uninstaller message
fix a typo in uninstaller message
AppleScript
bsd-3-clause
binaryage/totalfinder-installer
9da6f2fe6e6562bae4cc99de5a6dad09be1c591f
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
Simplify return statements in sorting function
Simplify return statements in sorting function
AppleScript
mit
caleb531/play-song,caleb531/play-song
9a8739087010687b52bbbcb65d3c63944973699e
org.hidetake.osx-go-to-bed.applescript
org.hidetake.osx-go-to-bed.applescript
#!/usr/bin/osascript set awake_time to date "08:00:00" set title_head to "Remaining" set description to "You can sleep only" set remain_time to date "0:0" + (awake_time - current date) display notification description with title title_head & " " & time string of remain_time
#!/usr/bin/osascript set awakeTime to date "8:00:00" set {hours: remainHours, minutes: remainMinutes} to (date "0:0") + (awakeTime - (current date)) set messageTitle to "Remaining " & remainHours & " hours " & remainMinutes & " minutes" set messageDescription to "now " & time string of (current date) display notific...
Improve message
Improve message
AppleScript
apache-2.0
int128/osx-go-to-bed
f1f26a784aa41da91240b4f36879b96c6905fe21
src/call_with_finder_selection.applescript
src/call_with_finder_selection.applescript
(* Get images in Finder selection, then call the workflow again with the first selected image. If no images are selected, return an error message, which can be passed to a Post Notification action. *) -- The filetypes understood by Google Image Search set imageExtensions to {"jpg", "jpeg", "bmp", "gif", "png"} -...
(* Get images in Finder selection, then call the workflow again with the first selected image. If no images are selected, return an error message, which can be passed to a Post Notification action. *) -- The filetypes understood by Google Image Search set imageExtensions to {"jpg", "jpeg", "bmp", "gif", "png"} -...
Update call_with_finder_selection.applescript
Update call_with_finder_selection.applescript
AppleScript
mit
deanishe/alfred-similar-image-search
fe5d7c99a2c3280f665d030d1b58e9d1c724f6da
lib/nehm/applescripts/list_of_playlists.applescript
lib/nehm/applescripts/list_of_playlists.applescript
tell application "iTunes" get name of playlists end tell
tell application "iTunes" get name of playlists end tell
Add newline in list_of_playlists
Add newline in list_of_playlists
AppleScript
mit
bogem/nehm
e866d8e1cf220f51469dbb52679e8931d69d0bcc
tube/autoload/tube/applescript/iterm.applescript
tube/autoload/tube/applescript/iterm.applescript
-- iterm.applescript --- -- this script requires an argument that represent the command to execute on run argv set command to (item 1 of argv) tell application "iTerm" try set mysession to current session of current terminal on error set myterm to (make new terminal) ...
-- iterm.applescript --- -- this script requires an argument that represent the command to execute on run argv set command to (item 1 of argv) tell application iTerm2 tell current session of first window write text command end tell end tell end run
Use new iTerm applescript
Use new iTerm applescript
AppleScript
mit
alisnic/tube.vim
ce2d601d2b9e5efafdc3afce6fabbeaf2bd2e534
autoload/tube/applescript/iterm.applescript
autoload/tube/applescript/iterm.applescript
-- iterm.applescript --- -- this script requires an argument that represent the command to execute on run argv set command to (item 1 of argv) tell application "iTerm" try set mysession to current session of current terminal on error set myterm to (make new terminal) ...
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 tel...
Update applescript
Update applescript
AppleScript
mit
alisnic/tube.vim
bef22a8743b249a2c66e50049324982a6caddf14
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 15 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- -- workflow folders property libraryFolder : (path to library fol...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 15 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- -- workflow folders property libraryFolder : (path to library fol...
Fix bug where some non-Apple Music songs were missing artwork
Fix bug where some non-Apple Music songs were missing artwork The original algorithm assumed that the file extension of every artwork image was always jpeg. However, some songs (which I did not download from Apple Music, coincidentally) happened to have png artwork, and so the algorithm would fail to return the correc...
AppleScript
mit
caleb531/play-song,caleb531/play-song
698772ca16b63f60ff287df21abeb88f15b2afe4
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 15 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- -- workflow folders property libraryFolder : (path to library fol...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 15 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- -- workflow folders property libraryFolder : (path to library fol...
Fix mismatched handler end tag
Fix mismatched handler end tag
AppleScript
mit
caleb531/play-song,caleb531/play-song
c01e12bb3bd74ab1a86cd428ea9eb35415c67c75
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
Fix bug where disc number-less songs would be excluded
Fix bug where disc number-less songs would be excluded
AppleScript
mit
caleb531/play-song,caleb531/play-song
d63b1f75ef971489a00339f4ec8af0e4f3113bad
ports/darwin_dmg/adjust_installation_window.scpt
ports/darwin_dmg/adjust_installation_window.scpt
tell application "Finder" tell disk "Rakudo_Star" open set top_left_X to 100 set top_left_Y to 100 set bottom_right_X to 600 set bottom_right_Y to 500 tell container window set current view to icon view set toolbar visible to f...
tell application "Finder" tell disk "Rakudo" open set top_left_X to 100 set top_left_Y to 100 set bottom_right_X to 600 set bottom_right_Y to 500 tell container window set current view to icon view set toolbar visible to false ...
use Rakudo in applescript too
use Rakudo in applescript too
AppleScript
artistic-2.0
stmuk/star,rakudo/star
bb1f289638bfe60cb9186d571be3619dd900dc2d
library/fmGUI_ManageSecurity/fmGUI_ManageSecurity_Save.applescript
library/fmGUI_ManageSecurity/fmGUI_ManageSecurity_Save.applescript
-- fmGUI_ManageSecurity_Save({fullAccessAccountName:null, fullAccessPassword:null}) -- Daniel A. Shockley, NYHTC -- Close ( and save ) Manage Security (* HISTORY: 1.5 - 2017-10-19 ( eshagdar ): sub-handlers: button clicks, window checks, authentication. 1.4.2 - 2017-08-09 ( eshagdar ): instead of waiting for a set ...
-- fmGUI_ManageSecurity_Save({fullAccessAccountName:null, fullAccessPassword:null}) -- Daniel A. Shockley, NYHTC -- Close ( and save ) Manage Security (* HISTORY: 1.5.1 - 2017-10-23 ( eshagdar ): FM16 renamed auth window name, so windw test is 'begins with' instead of 'is' 1.5 - 2017-10-19 ( eshagdar ): sub-handler...
save security dialog window name changed in fm16.
save security dialog window name changed in fm16.
AppleScript
mit
NYHTC/applescript-fm-helper
ffeece1eb5445a75d34edf403f0268d86334516c
TotalFinder.app/Contents/Resources/Scripts/main.applescript
TotalFinder.app/Contents/Resources/Scripts/main.applescript
tell application "Finder" delay 3 -- this delay is important to prevent random "Connection is Invalid -609" AppleScript errors try event BATFinit on error msg number num display dialog " Unable to launch TotalFinder. " & msg & " (" & (num as text) & ")" & " You may visit http://getsatisfaction.com/binarya...
set lastErrMsg to "Unable to inject TotalFinder" set lastErrCode to -1 set failed to yes set nextDelay to 1 tell application "Finder" set startTime to current date -- under some conditions like system startup the system may be busy delivering apple events -- in this case we may get random "Connection is Invalid -6...
make the injector script more robust => repeat injection trials to overcome -609 errors
make the injector script more robust => repeat injection trials to overcome -609 errors
AppleScript
bsd-3-clause
binaryage/totalfinder-installer
56f1069b73f9074b934b403c8068dde1b5efe282
AppleScript/openQnA.scpt
AppleScript/openQnA.scpt
-- http://www-01.ibm.com/support/docview.wss?uid=swg21506026 -- https://github.com/jgstew/tools/blob/master/bash/openQnA.sh -- http://alvinalexander.com/blog/post/mac-os-x/applescript-use-comments tell application "Terminal" if not (exists window 1) then reopen activate do script "/Library/BESAgent/BESAgent.app/Cont...
-- http://www-01.ibm.com/support/docview.wss?uid=swg21506026 -- https://github.com/jgstew/tools/blob/master/bash/openQnA.sh -- http://alvinalexander.com/blog/post/mac-os-x/applescript-use-comments tell application "Terminal" if not (exists window 1) then reopen activate do script "/Library/BESAgent/BESAgent.app/Cont...
Update openQnA.scpt
Update openQnA.scpt
AppleScript
mit
jgstew/tools,jgstew/tools,jgstew/tools,jgstew/tools
e05c2c648a2b215c84cd1832023d8368bb31349c
TotalFinder.app/Contents/Resources/Scripts/main.applescript
TotalFinder.app/Contents/Resources/Scripts/main.applescript
tell application "Finder" delay 1 -- this delay is important to prevent random "Connection is Invalid -609" AppleScript errors try event BATFinit on error msg number num display dialog " Unable to launch TotalFinder. " & msg & " (" & (num as text) & ")" & " You may visit http://getsatisfaction.com/binarya...
tell application "Finder" delay 3 -- this delay is important to prevent random "Connection is Invalid -609" AppleScript errors try event BATFinit on error msg number num display dialog " Unable to launch TotalFinder. " & msg & " (" & (num as text) & ")" & " You may visit http://getsatisfaction.com/binarya...
increase delay before injection from 1s to 3s this could help some slower systems during system startup
increase delay before injection from 1s to 3s this could help some slower systems during system startup
AppleScript
bsd-3-clause
binaryage/totalfinder-installer
2b6069f41f0ecc505e5690153cc990ae6d7de5ad
autoload/applescript/iterm.scpt
autoload/applescript/iterm.scpt
-- execute_iterm.scpt -- last change: 19 Jan 2013 --- -- this script require an argument that represent the command to execute on run argv set command to (item 1 of argv) tell application "iTerm" try set mysession to current session of current terminal on error set my...
-- execute_iterm.scpt -- last change: 19 Jan 2013 --- -- this script require an argument that represent the command to execute on run argv set command to (item 1 of argv) tell application "iTerm" repeat with _terminal in terminals repeat with _session in (every session of _terminal whose name co...
Change script for rspec command only
Change script for rspec command only
AppleScript
mit
chautoni/tube.vim
abf78aefb0e57c7fc50194bc0e5b219c6bff32db
filters/playplaylist.applescript
filters/playplaylist.applescript
-- playplaylist filter -- on loadConfig() do shell script "./compile-config.sh" set config to load script alias ((path to library folder from user domain as text) & "Caches:com.runningwithcrayons.Alfred-3:Workflow Data:com.calebevans.playsong:config.scpt") return config end loadConfig on getPlaylistResultListFee...
-- playplaylist filter -- on loadConfig() do shell script "./compile-config.sh" set config to load script alias ((path to library folder from user domain as text) & "Caches:com.runningwithcrayons.Alfred-3:Workflow Data:com.calebevans.playsong:config.scpt") return config end loadConfig on getPlaylistResultListFee...
Fix error when encountering non-music playlists
Fix error when encountering non-music playlists
AppleScript
mit
caleb531/play-song,caleb531/play-song
e48fd9cf6cc7ceba954a64ecebc7d9eae378b05d
scripts/itermcolors.applescript
scripts/itermcolors.applescript
set dateFormat to "%H" set hour to do shell script "date +" & (quoted form of dateFormat) if hour > 7 and hour < 19 then set tint to "light" else set tint to "dark" end if tell application "iTerm" set t to current terminal tell t set s to current session tell s if tint is equal to "light" then set ansi...
set h to hours of (current date) if (h > 7) and (h < 19) then set tint to "light" else set tint to "dark" end if tell application "iTerm" set t to current terminal tell t set s to current session tell s if tint is "light" then set ansiWhiteColor to {6.003730859375E+4, 5.83269609375E+4, 5.2284546875E+4} ...
Update iTerm script to fix time issue
Update iTerm script to fix time issue
AppleScript
mit
keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles
505a0489cbfbacc752a19b4be4d04a9e986994ce
QuickStats/QuickStats.applescript
QuickStats/QuickStats.applescript
property pTitle : "OmniFocus: Quick Stats" property pVersion : "2.07.brett" property pstrDBPath : "$HOME/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2" property pstrMinOSX : "10.9" property pTimeOut : 20 -- Original version: https://github.com/RobTrew/tree...
property pTitle : "OmniFocus: Quick Stats" property pVersion : "2.07.brett" property pstrDBPath : "$HOME/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2" property pstrMinOSX : "10.9" property pTimeOut : 20 -- Original version: https://github.com/RobTrew/tree...
add all tasks to stats
add all tasks to stats
AppleScript
apache-2.0
brettporter/omnifocus-tools
da6f742cdf9d345cf699279bcd138ea533548221
recall.applescript
recall.applescript
#!/usr/bin/env osascript set journal to "~/ia/Journal/Journal.md" tell application "Terminal" set lineCount to (do shell script "wc -l < " & journal) as integer set randomLine to (random number from 1 to lineCount) as integer activate do script "vim -c ':call ToggleBackground()' -c ':Goyo' -c '" & randomLine & "' ...
#!/usr/bin/env osascript set journal to "~/ia/Journal/Journal.md" tell application "Terminal" set lineCount to (do shell script "wc -l < " & journal) as integer set randomLine to (random number from 1 to lineCount) as integer activate do script "vim -c ':Goyo' -c ':set bg=light' " & journal & ":" & randomLine set...
Fix recall script to set background more reliably
Fix recall script to set background more reliably
AppleScript
mit
mk12/scripts,mk12/scripts,mk12/scripts,mk12/scripts
54fd72486a414cd105d6654e7a8e73bd01fde75a
connector-osx-kn.scpt
connector-osx-kn.scpt
-- -- slideshow -- Observe and Control Slideshow Applications -- Copyright (c) 2014 Ralf S. Engelschall <http://engelschall.com> -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License (MPL), version 2.0. If a copy of the MPL was not distributed -- with this file, You can obtain one at...
-- -- slideshow -- Observe and Control Slideshow Applications -- Copyright (c) 2014 Ralf S. Engelschall <http://engelschall.com> -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License (MPL), version 2.0. If a copy of the MPL was not distributed -- with this file, You can obtain one at...
align the Keynote (5) scripting to the PowerPoint variants
align the Keynote (5) scripting to the PowerPoint variants
AppleScript
mpl-2.0
rse/slideshow,rse/slideshow
77d69cb4ba40a92646584137acded2cb0f0752a2
source/Reminders/RemindersNewItem.applescript
source/Reminders/RemindersNewItem.applescript
on sortList(unsortedList) set oldDelimiters to AppleScript's text item delimiters set AppleScript's text item delimiters to (ASCII character 10) set sortedList to paragraphs of (do shell script "echo " & quoted form of (unsortedList as string) & "| sort -d -f") set AppleScript's text item delimiters to oldDelimite...
tell application "Reminders" activate set theAccount to name of first account tell account theAccount set theList to name of first list set myReminder to (make new reminder at list theList with properties {name:"{popclip text}"}) end tell end tell
revert reminders change
revert reminders change
AppleScript
mit
dreki/PopClip-Extensions,a-b/PopClip-Extensions,a-b/PopClip-Extensions,Kapeli/PopClip-Extensions,dreki/PopClip-Extensions,Kapeli/PopClip-Extensions,onecrayon/PopClip-Extensions,bopo/PopClip-Extensions,chenruixuan/PopClip-Extensions,chenruixuan/PopClip-Extensions,Kapeli/PopClip-Extensions,bopo/PopClip-Extensions,onecray...
4f3a6101b7abad5e9052acaea45efb35ff1b21d2
Scripts/reset-simulator.applescript
Scripts/reset-simulator.applescript
tell application "iPhone Simulator" activate end tell tell application "System Events" tell process "iPhone Simulator" tell menu bar 1 tell menu bar item "iOs Simulator" tell menu "iOs Simulator" click menu item "Reset Content and Settings…" end tell end tell end tell tell window 1 click ...
tell application "iPhone Simulator" activate end tell tell application "System Events" tell process "iPhone Simulator" tell menu bar 1 tell menu bar item "iOs Simulator" tell menu "iOs Simulator" click menu item "Reset Content and Settings…" end tell end tell end tell tell window 1 click ...
Update Scripts/reset-simulator.applescript
Update Scripts/reset-simulator.applescript add ending new line
AppleScript
mit
blazingcloud/sealant,blazingcloud/sealant,blazingcloud/sealant,blazingcloud/sealant
a4a75d63dfb60cbcb9568081cf922b90651d1a38
keynote.applescript
keynote.applescript
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} s...
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} s...
Break up slide creation
Break up slide creation
AppleScript
mit
persquare/md2keynote
03476f629ed575808c641045b0609f9c6378ff0a
javascript/safari-driver/reinstall.scpt
javascript/safari-driver/reinstall.scpt
#!/usr/bin/osascript (* Copyright 2012 Software Freedom Conservancy. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless re...
#!/usr/bin/osascript (* Copyright 2012 Software Freedom Conservancy. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless re...
Make reinstall.scpt system language independent.
JasonLeyba: Make reinstall.scpt system language independent. git-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@16964 07704840-8298-11de-bf8c-fd130f914ac9
AppleScript
apache-2.0
winhamwr/selenium,winhamwr/selenium,virajs/selenium-1,virajs/selenium-1,virajs/selenium-1,virajs/selenium-1,winhamwr/selenium,virajs/selenium-1,virajs/selenium-1,virajs/selenium-1,winhamwr/selenium,winhamwr/selenium,virajs/selenium-1,winhamwr/selenium,winhamwr/selenium,virajs/selenium-1,winhamwr/selenium
6968f1694181681f5520551bf214152ca4b88cff
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
Add space between quantity number and quantity name
Add space between quantity number and quantity name
AppleScript
mit
caleb531/play-song,caleb531/play-song
be432b7e1afa47c978d34b97440ce894967c2dc0
installer/vba-blocks.applescript
installer/vba-blocks.applescript
tell application "Terminal" activate set currentTab to do script ("vba-blocks help") end tell
tell application "Terminal" activate do script ("vba-blocks help") end tell
Tweak run applescript
Tweak run applescript
AppleScript
mit
vba-blocks/vba-blocks,vba-blocks/vba-blocks,vba-blocks/vba-blocks
49f23c9646bbc9a8f955ba4cb5f1c036d641e065
status.applescript
status.applescript
tell application "Finder" set json_path to file "json.scpt" of folder of (path to me) end tell set json to load script (json_path as alias) on is_running(appName) tell application "System Events" to (name of processes) contains appName end is_running set reply to json's createDict() if is_running("Hermes") then re...
tell application "Finder" set json_path to file "json.scpt" of folder of (path to me) end tell set json to load script (json_path as alias) on is_running(appName) tell application "System Events" to (name of processes) contains appName end is_running set reply to json's createDict() if is_running("Hermes") then re...
Add UTC unix epoch as "time" as string
Add UTC unix epoch as "time" as string otherwise it converts to a real since AppleScript's integer is seemingly narrow...
AppleScript
mit
winny-/HermesRemote,winny-/HermesRemote
3a58557c1262f691a0019299e89884c24c779481
mpkg/boot2docker.app/Contents/Resources/Scripts/main.scpt
mpkg/boot2docker.app/Contents/Resources/Scripts/main.scpt
FasdUAS 1.101.10 lR OR kQ I .miscactvnullnull  l  } TODO: test if ~/.boot2docker/boot2docker.iso exists, and if not, copy it from the install (need to ship it in the installer)  TODO: test...
FasdUAS 1.101.10 l\ O\ k[ I .miscactvnullnull  l  } TODO: test if ~/.boot2docker/boot2docker.iso exists, and if not, copy it from the install (need to ship it in the installer)  TODO: test...
fix for issue #28, switch to bash before executing script
fix for issue #28, switch to bash before executing script
AppleScript
apache-2.0
JoeWoo/osx-installer,boot2docker/osx-installer,JoeWoo/osx-installer,yut148/osx-installer,yut148/osx-installer,boot2docker/osx-installer,lakwarus/c5-osx-installer,cgvarela/osx-installer,lakwarus/c5-osx-installer,cgvarela/osx-installer
fb7eb172817b1bee7e4a5448b4250aa2b5cdeb8a
Xmod/Xmod.applescript
Xmod/Xmod.applescript
tell application "Xcode" if not (exists active project document) then error "No active project. Please open an Xcode project and re-run the script." try my updateProjectXmod(project of active project document) on error errMsg my logger("Xmod.scpt exception: " & errMsg) end try end tell on updateProjectXmod(...
tell application "Xcode" if not (exists active project document) then error "No active project. Please open an Xcode project and re-run the script." try my updateProjectXmod(project of active project document) on error errMsg my logger("Xmod.scpt exception: " & errMsg) end try end tell on updateProjectXmod(...
change file ordering to human.m, human.h, machine.m, machine.h (from human.h, human.m, machine.h, machine.m).
[CHANGE] Xmo'd: change file ordering to human.m, human.h, machine.m, machine.h (from human.h, human.m, machine.h, machine.m).
AppleScript
mit
mjasa/mogenerator,rentzsch/mogenerator,fizker/mogenerator,bewebste/mogenerator,anton-matosov/mogenerator,iv-mexx/mogenerator,fizker/mogenerator,ef-ctx/mogenerator,skywinder/mogenerator,ef-ctx/mogenerator,seanm/mogenerator,hardikdevios/mogenerator,casademora/mogenerator,willowtreeapps/mattgenerator,rentzsch/mogenerator,...
f057989121a8e2fdb173dacb76b60b9b3c2772d3
AppleScript/openQnA.scpt
AppleScript/openQnA.scpt
tell application "Terminal" if not (exists window 1) then reopen activate do script "/Library/BESAgent/BESAgent.app/Contents/MacOS/QnA -showtypes" in window 1 end tell
-- http://www-01.ibm.com/support/docview.wss?uid=swg21506026 -- https://github.com/jgstew/tools/blob/master/bash/openQnA.sh -- http://alvinalexander.com/blog/post/mac-os-x/applescript-use-comments tell application "Terminal" if not (exists window 1) then reopen activate do script "/Library/BESAgent/BESAgent.app/Cont...
Update openQnA.scpt
Update openQnA.scpt
AppleScript
mit
jgstew/tools,jgstew/tools,jgstew/tools,jgstew/tools