Skip to content

Instantly share code, notes, and snippets.

@dcunited001
dcunited001 / new_finder_window.applescript
Created December 2, 2012 13:13
Automator Service to Open New Finder Window
-- create new service in automator
-- set input to "no input" instead of "text"
-- add new task: run applescript
on run {input, parameters}
tell application "Finder"
activate
set new_window to make new Finder window
end tell
end run
@tasdikrahman
tasdikrahman / python_tests_dir_structure.md
Last active February 21, 2024 02:16
Typical Directory structure for python tests

A Typical directory structure for running tests using unittest

Ref : stackoverflow

The best solution in my opinion is to use the unittest [command line interface][1] which will add the directory to the sys.path so you don't have to (done in the TestLoader class).

For example for a directory structure like this:

new_project

├── antigravity.py