Skip to content

Commit

Permalink
Minor naming changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BarkyTheDog committed Jan 11, 2015
1 parent 32aeeaf commit 91588af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions LaunchParameterizedScript.applescript
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on launch_app(user_message)
tell application user_message to run
tell application user_message to activate
on launch_app(app_name)
tell application app_name to run
tell application app_name to activate
end launch_app
1 change: 0 additions & 1 deletion LauncherApp/LaunchWithSystemCall.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ void launchWithSystemCall(const char * const app)
sprintf(commandLine, "osascript -e \"%s\"", scriptCode);

int result = system(commandLine);

}
2 changes: 1 addition & 1 deletion LauncherApp/LauncherViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ - (void)launchWithBundledScriptWithParameters:(NSString *)app
length:sizeof(ProcessSerialNumber)];

// create an NSAppleEventDescriptor with the script's method name to call,
// this is used for the script statement: "on launch_app(user_message)"
// this is used for the script statement: "on launch_app(app_name)"
// Note that the routine name must be in lower case.
NSAppleEventDescriptor *handler = [NSAppleEventDescriptor descriptorWithString: [@"launch_app" lowercaseString]];

Expand Down

0 comments on commit 91588af

Please sign in to comment.