This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
printf("Hello world!"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run argv | |
set inUrl to item 1 of argv | |
set editor to item 2 of argv | |
tell application "Google Chrome" | |
activate | |
set theUrl to inUrl | |
if (count every window) = 0 then | |
make new window |