desoto-photoapp 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -1
- data/assets/Reprint.app/Contents/Info.plist +86 -0
- data/assets/Reprint.app/Contents/MacOS/Application Stub +0 -0
- data/assets/Reprint.app/Contents/Resources/AutomatorApplet.icns +0 -0
- data/assets/Reprint.app/Contents/Resources/Dutch.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/English.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/French.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/German.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/Italian.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/Japanese.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/Spanish.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/ar.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/ca.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/cs.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/da.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/el.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/es_MX.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/fi.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/he.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/hr.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/hu.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/id.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/ko.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/ms.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/no.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/pl.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/pt.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/pt_PT.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/ro.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/ru.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/sk.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/sv.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/th.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/tr.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/uk.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/vi.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/zh_CN.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/Resources/zh_TW.lproj/ApplicationStub.nib +0 -0
- data/assets/Reprint.app/Contents/document.wflow +207 -0
- data/assets/Reprint.app/Icon/r +0 -0
- data/assets/photoapp-process.workflow/Contents/Info.plist +8 -0
- data/assets/photoapp-process.workflow/Contents/QuickLook/Preview.png +0 -0
- data/assets/photoapp-process.workflow/Contents/document.wflow +197 -0
- data/exe/photoapp +11 -6
- data/lib/{desoto-photoapp.rb → photoapp.rb} +4 -5
- data/lib/{desoto-photoapp → photoapp}/photo.rb +0 -0
- data/lib/{desoto-photoapp → photoapp}/s3.rb +0 -0
- data/lib/photoapp/version.rb +2 -0
- data/photoapp.gemspec +2 -2
- metadata +48 -6
- data/lib/desoto-photoapp/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c34454c92ee73a13bfbbb3e63e934d54f3c42d0
|
4
|
+
data.tar.gz: ab93bff163c447fb03578522afc6a39385f9f25e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ee189913b8a59e0da2cddb6efbb68add178df96c0431644470025a07ba187ff1f55eea2edc39e77723d7d0103c9dc7355888dff8e92e1a1bbf29e3dcbe26171
|
7
|
+
data.tar.gz: f11052d80b265e0e33d78eeb04e4e6fac8ef17f8058d0330d72c489f25fd2ceba648e3449fe86b522fc77214427ed76f6fa0df053ff66880bc0a1306a16ca959
|
data/README.md
CHANGED
@@ -16,7 +16,40 @@ And then execute:
|
|
16
16
|
|
17
17
|
Install the [Automator actions](https://photosautomation.com/index.html) for importing photos. Download the [installer here](https://photosautomation.com/installer.zip).
|
18
18
|
|
19
|
-
|
19
|
+
|
20
|
+
Run the setup command:
|
21
|
+
|
22
|
+
```
|
23
|
+
$ photoapp setup
|
24
|
+
```
|
25
|
+
|
26
|
+
This will do the following:
|
27
|
+
|
28
|
+
- Installs `imagemagick` with (using Homebrew).
|
29
|
+
- Installs [Automator actions](https://photosautomation.com/index.html) for importing pictures into Photos.app [Manually install from here](https://photosautomation.com/installer.zip)
|
30
|
+
- Copies the image processing Automator workflow to `~/Library/Workflows/Applications/Folder\ Actions/`
|
31
|
+
- Installs the `Reprint.app` to `/Applications` (You should add this app to the dock for easy reprinting).
|
32
|
+
|
33
|
+
Finally you'll need to enable the folder action to trigger photo processing when photos are added to the import folder. Launch the folder actions setup app:
|
34
|
+
|
35
|
+
```
|
36
|
+
$ open /System/Library/CoreServices/Folder\ Actions\ Setup.app
|
37
|
+
```
|
38
|
+
|
39
|
+
Then click `+` below the left column to add a new folder. Choose the folder where photos will be imported to, and click the `+` beneath the right panel to add an
|
40
|
+
action. Select `photoapp-process.workflow` from the list and close the app.
|
41
|
+
|
42
|
+
Finally to ensure that photos are copied to that folder, plug in the camera or camera card reader and open Image Capture. Select your device in the sidebar and
|
43
|
+
click the "arrow in a box" icon in the bottom left to open up a drawer which will allow you to specify which app is opened when that device is plugged in. Select
|
44
|
+
the AutoImporter app. Next launch AutoImporter.
|
45
|
+
|
46
|
+
```
|
47
|
+
open /System/Library/Image\ Capture/Support/Application/AutoImporter.app
|
48
|
+
```
|
49
|
+
|
50
|
+
Configure it to import to the folder you have set to trigger the photos workflow and be sure it is set to delete photos after import.
|
51
|
+
|
52
|
+
## Printing
|
20
53
|
|
21
54
|
This app uses CUPS to print. To configure your CUPS defaults:
|
22
55
|
|
@@ -0,0 +1,86 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>AMIsApplet</key>
|
6
|
+
<true/>
|
7
|
+
<key>AMStayOpen</key>
|
8
|
+
<false/>
|
9
|
+
<key>BuildMachineOSBuild</key>
|
10
|
+
<string>14D49</string>
|
11
|
+
<key>CFBundleDevelopmentRegion</key>
|
12
|
+
<string>English</string>
|
13
|
+
<key>CFBundleDocumentTypes</key>
|
14
|
+
<array>
|
15
|
+
<dict>
|
16
|
+
<key>CFBundleTypeExtensions</key>
|
17
|
+
<array>
|
18
|
+
<string>*</string>
|
19
|
+
</array>
|
20
|
+
<key>CFBundleTypeName</key>
|
21
|
+
<string>Automator workflow file</string>
|
22
|
+
<key>CFBundleTypeOSTypes</key>
|
23
|
+
<array>
|
24
|
+
<string>****</string>
|
25
|
+
</array>
|
26
|
+
<key>CFBundleTypeRole</key>
|
27
|
+
<string>Viewer</string>
|
28
|
+
</dict>
|
29
|
+
</array>
|
30
|
+
<key>CFBundleExecutable</key>
|
31
|
+
<string>Application Stub</string>
|
32
|
+
<key>CFBundleIconFile</key>
|
33
|
+
<string>AutomatorApplet</string>
|
34
|
+
<key>CFBundleIdentifier</key>
|
35
|
+
<string>com.apple.automator.reprint</string>
|
36
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
37
|
+
<string>6.0</string>
|
38
|
+
<key>CFBundleName</key>
|
39
|
+
<string>reprint</string>
|
40
|
+
<key>CFBundlePackageType</key>
|
41
|
+
<string>APPL</string>
|
42
|
+
<key>CFBundleShortVersionString</key>
|
43
|
+
<string>1.2</string>
|
44
|
+
<key>CFBundleSignature</key>
|
45
|
+
<string>????</string>
|
46
|
+
<key>CFBundleURLTypes</key>
|
47
|
+
<array/>
|
48
|
+
<key>CFBundleVersion</key>
|
49
|
+
<string>409.2</string>
|
50
|
+
<key>DTCompiler</key>
|
51
|
+
<string>com.apple.compilers.llvm.clang.1_0</string>
|
52
|
+
<key>DTPlatformBuild</key>
|
53
|
+
<string>6D97u</string>
|
54
|
+
<key>DTPlatformVersion</key>
|
55
|
+
<string>GM</string>
|
56
|
+
<key>DTSDKBuild</key>
|
57
|
+
<string>14D42</string>
|
58
|
+
<key>DTSDKName</key>
|
59
|
+
<string>macosx10.10internal</string>
|
60
|
+
<key>DTXcode</key>
|
61
|
+
<string>0630</string>
|
62
|
+
<key>DTXcodeBuild</key>
|
63
|
+
<string>6D97u</string>
|
64
|
+
<key>LSMinimumSystemVersion</key>
|
65
|
+
<string>10.5</string>
|
66
|
+
<key>LSMinimumSystemVersionByArchitecture</key>
|
67
|
+
<dict>
|
68
|
+
<key>x86_64</key>
|
69
|
+
<string>10.6</string>
|
70
|
+
</dict>
|
71
|
+
<key>LSUIElement</key>
|
72
|
+
<true/>
|
73
|
+
<key>NSAppleScriptEnabled</key>
|
74
|
+
<string>YES</string>
|
75
|
+
<key>NSMainNibFile</key>
|
76
|
+
<string>ApplicationStub</string>
|
77
|
+
<key>NSPrincipalClass</key>
|
78
|
+
<string>NSApplication</string>
|
79
|
+
<key>NSServices</key>
|
80
|
+
<array/>
|
81
|
+
<key>UTExportedTypeDeclarations</key>
|
82
|
+
<array/>
|
83
|
+
<key>UTImportedTypeDeclarations</key>
|
84
|
+
<array/>
|
85
|
+
</dict>
|
86
|
+
</plist>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,207 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>AMApplicationBuild</key>
|
6
|
+
<string>409.2</string>
|
7
|
+
<key>AMApplicationVersion</key>
|
8
|
+
<string>2.5</string>
|
9
|
+
<key>AMDocumentVersion</key>
|
10
|
+
<string>2</string>
|
11
|
+
<key>actions</key>
|
12
|
+
<array>
|
13
|
+
<dict>
|
14
|
+
<key>action</key>
|
15
|
+
<dict>
|
16
|
+
<key>AMAccepts</key>
|
17
|
+
<dict>
|
18
|
+
<key>Container</key>
|
19
|
+
<string>List</string>
|
20
|
+
<key>Optional</key>
|
21
|
+
<true/>
|
22
|
+
<key>Types</key>
|
23
|
+
<array>
|
24
|
+
<string>com.apple.cocoa.string</string>
|
25
|
+
</array>
|
26
|
+
</dict>
|
27
|
+
<key>AMActionVersion</key>
|
28
|
+
<string>2.0.3</string>
|
29
|
+
<key>AMApplication</key>
|
30
|
+
<array>
|
31
|
+
<string>Automator</string>
|
32
|
+
</array>
|
33
|
+
<key>AMParameterProperties</key>
|
34
|
+
<dict>
|
35
|
+
<key>COMMAND_STRING</key>
|
36
|
+
<dict/>
|
37
|
+
<key>CheckedForUserDefaultShell</key>
|
38
|
+
<dict/>
|
39
|
+
<key>inputMethod</key>
|
40
|
+
<dict/>
|
41
|
+
<key>shell</key>
|
42
|
+
<dict/>
|
43
|
+
<key>source</key>
|
44
|
+
<dict/>
|
45
|
+
</dict>
|
46
|
+
<key>AMProvides</key>
|
47
|
+
<dict>
|
48
|
+
<key>Container</key>
|
49
|
+
<string>List</string>
|
50
|
+
<key>Types</key>
|
51
|
+
<array>
|
52
|
+
<string>com.apple.cocoa.string</string>
|
53
|
+
</array>
|
54
|
+
</dict>
|
55
|
+
<key>ActionBundlePath</key>
|
56
|
+
<string>/System/Library/Automator/Run Shell Script.action</string>
|
57
|
+
<key>ActionName</key>
|
58
|
+
<string>Run Shell Script</string>
|
59
|
+
<key>ActionParameters</key>
|
60
|
+
<dict>
|
61
|
+
<key>COMMAND_STRING</key>
|
62
|
+
<string>for f in "$@"
|
63
|
+
do
|
64
|
+
lpr $f
|
65
|
+
done</string>
|
66
|
+
<key>CheckedForUserDefaultShell</key>
|
67
|
+
<true/>
|
68
|
+
<key>inputMethod</key>
|
69
|
+
<integer>1</integer>
|
70
|
+
<key>shell</key>
|
71
|
+
<string>/bin/bash</string>
|
72
|
+
<key>source</key>
|
73
|
+
<string></string>
|
74
|
+
</dict>
|
75
|
+
<key>BundleIdentifier</key>
|
76
|
+
<string>com.apple.RunShellScript</string>
|
77
|
+
<key>CFBundleVersion</key>
|
78
|
+
<string>2.0.3</string>
|
79
|
+
<key>CanShowSelectedItemsWhenRun</key>
|
80
|
+
<false/>
|
81
|
+
<key>CanShowWhenRun</key>
|
82
|
+
<true/>
|
83
|
+
<key>Category</key>
|
84
|
+
<array>
|
85
|
+
<string>AMCategoryUtilities</string>
|
86
|
+
</array>
|
87
|
+
<key>Class Name</key>
|
88
|
+
<string>RunShellScriptAction</string>
|
89
|
+
<key>InputUUID</key>
|
90
|
+
<string>A88305AF-F481-4120-9873-CA58EDCA65B3</string>
|
91
|
+
<key>Keywords</key>
|
92
|
+
<array>
|
93
|
+
<string>Shell</string>
|
94
|
+
<string>Script</string>
|
95
|
+
<string>Command</string>
|
96
|
+
<string>Run</string>
|
97
|
+
<string>Unix</string>
|
98
|
+
</array>
|
99
|
+
<key>OutputUUID</key>
|
100
|
+
<string>1C4476E1-026F-4DE0-98D9-69BA798ADA4E</string>
|
101
|
+
<key>UUID</key>
|
102
|
+
<string>19F8CB51-1DAA-4997-98C8-615FD80A858C</string>
|
103
|
+
<key>UnlocalizedApplications</key>
|
104
|
+
<array>
|
105
|
+
<string>Automator</string>
|
106
|
+
</array>
|
107
|
+
<key>arguments</key>
|
108
|
+
<dict>
|
109
|
+
<key>0</key>
|
110
|
+
<dict>
|
111
|
+
<key>default value</key>
|
112
|
+
<integer>0</integer>
|
113
|
+
<key>name</key>
|
114
|
+
<string>inputMethod</string>
|
115
|
+
<key>required</key>
|
116
|
+
<string>0</string>
|
117
|
+
<key>type</key>
|
118
|
+
<string>0</string>
|
119
|
+
<key>uuid</key>
|
120
|
+
<string>0</string>
|
121
|
+
</dict>
|
122
|
+
<key>1</key>
|
123
|
+
<dict>
|
124
|
+
<key>default value</key>
|
125
|
+
<string></string>
|
126
|
+
<key>name</key>
|
127
|
+
<string>source</string>
|
128
|
+
<key>required</key>
|
129
|
+
<string>0</string>
|
130
|
+
<key>type</key>
|
131
|
+
<string>0</string>
|
132
|
+
<key>uuid</key>
|
133
|
+
<string>1</string>
|
134
|
+
</dict>
|
135
|
+
<key>2</key>
|
136
|
+
<dict>
|
137
|
+
<key>default value</key>
|
138
|
+
<false/>
|
139
|
+
<key>name</key>
|
140
|
+
<string>CheckedForUserDefaultShell</string>
|
141
|
+
<key>required</key>
|
142
|
+
<string>0</string>
|
143
|
+
<key>type</key>
|
144
|
+
<string>0</string>
|
145
|
+
<key>uuid</key>
|
146
|
+
<string>2</string>
|
147
|
+
</dict>
|
148
|
+
<key>3</key>
|
149
|
+
<dict>
|
150
|
+
<key>default value</key>
|
151
|
+
<string></string>
|
152
|
+
<key>name</key>
|
153
|
+
<string>COMMAND_STRING</string>
|
154
|
+
<key>required</key>
|
155
|
+
<string>0</string>
|
156
|
+
<key>type</key>
|
157
|
+
<string>0</string>
|
158
|
+
<key>uuid</key>
|
159
|
+
<string>3</string>
|
160
|
+
</dict>
|
161
|
+
<key>4</key>
|
162
|
+
<dict>
|
163
|
+
<key>default value</key>
|
164
|
+
<string>/bin/sh</string>
|
165
|
+
<key>name</key>
|
166
|
+
<string>shell</string>
|
167
|
+
<key>required</key>
|
168
|
+
<string>0</string>
|
169
|
+
<key>type</key>
|
170
|
+
<string>0</string>
|
171
|
+
<key>uuid</key>
|
172
|
+
<string>4</string>
|
173
|
+
</dict>
|
174
|
+
</dict>
|
175
|
+
<key>conversionLabel</key>
|
176
|
+
<integer>0</integer>
|
177
|
+
<key>isViewVisible</key>
|
178
|
+
<true/>
|
179
|
+
<key>location</key>
|
180
|
+
<string>369.000000:253.000000</string>
|
181
|
+
<key>nibPath</key>
|
182
|
+
<string>/System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib</string>
|
183
|
+
</dict>
|
184
|
+
<key>isViewVisible</key>
|
185
|
+
<true/>
|
186
|
+
</dict>
|
187
|
+
</array>
|
188
|
+
<key>connectors</key>
|
189
|
+
<dict/>
|
190
|
+
<key>variables</key>
|
191
|
+
<array>
|
192
|
+
<dict>
|
193
|
+
<key>UUID</key>
|
194
|
+
<string>182B4BC1-42B7-447F-99F1-22B0F6DFA84C</string>
|
195
|
+
<key>identifier</key>
|
196
|
+
<string>com.apple.Automator.Variable.Storage</string>
|
197
|
+
<key>name</key>
|
198
|
+
<string>files</string>
|
199
|
+
</dict>
|
200
|
+
</array>
|
201
|
+
<key>workflowMetaData</key>
|
202
|
+
<dict>
|
203
|
+
<key>workflowTypeIdentifier</key>
|
204
|
+
<string>com.apple.Automator.application</string>
|
205
|
+
</dict>
|
206
|
+
</dict>
|
207
|
+
</plist>
|
File without changes
|
Binary file
|
@@ -0,0 +1,197 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>AMApplicationBuild</key>
|
6
|
+
<string>409.2</string>
|
7
|
+
<key>AMApplicationVersion</key>
|
8
|
+
<string>2.5</string>
|
9
|
+
<key>AMDocumentVersion</key>
|
10
|
+
<string>2</string>
|
11
|
+
<key>actions</key>
|
12
|
+
<array>
|
13
|
+
<dict>
|
14
|
+
<key>action</key>
|
15
|
+
<dict>
|
16
|
+
<key>AMAccepts</key>
|
17
|
+
<dict>
|
18
|
+
<key>Container</key>
|
19
|
+
<string>List</string>
|
20
|
+
<key>Optional</key>
|
21
|
+
<true/>
|
22
|
+
<key>Types</key>
|
23
|
+
<array>
|
24
|
+
<string>com.apple.cocoa.string</string>
|
25
|
+
</array>
|
26
|
+
</dict>
|
27
|
+
<key>AMActionVersion</key>
|
28
|
+
<string>2.0.3</string>
|
29
|
+
<key>AMApplication</key>
|
30
|
+
<array>
|
31
|
+
<string>Automator</string>
|
32
|
+
</array>
|
33
|
+
<key>AMParameterProperties</key>
|
34
|
+
<dict>
|
35
|
+
<key>COMMAND_STRING</key>
|
36
|
+
<dict/>
|
37
|
+
<key>CheckedForUserDefaultShell</key>
|
38
|
+
<dict/>
|
39
|
+
<key>inputMethod</key>
|
40
|
+
<dict/>
|
41
|
+
<key>shell</key>
|
42
|
+
<dict/>
|
43
|
+
<key>source</key>
|
44
|
+
<dict/>
|
45
|
+
</dict>
|
46
|
+
<key>AMProvides</key>
|
47
|
+
<dict>
|
48
|
+
<key>Container</key>
|
49
|
+
<string>List</string>
|
50
|
+
<key>Types</key>
|
51
|
+
<array>
|
52
|
+
<string>com.apple.cocoa.string</string>
|
53
|
+
</array>
|
54
|
+
</dict>
|
55
|
+
<key>ActionBundlePath</key>
|
56
|
+
<string>/System/Library/Automator/Run Shell Script.action</string>
|
57
|
+
<key>ActionName</key>
|
58
|
+
<string>Run Shell Script</string>
|
59
|
+
<key>ActionParameters</key>
|
60
|
+
<dict>
|
61
|
+
<key>COMMAND_STRING</key>
|
62
|
+
<string>say "processing photos"
|
63
|
+
source ~/.bash_profile
|
64
|
+
photoapp process ~/cave.pics/inbound</string>
|
65
|
+
<key>CheckedForUserDefaultShell</key>
|
66
|
+
<true/>
|
67
|
+
<key>inputMethod</key>
|
68
|
+
<integer>1</integer>
|
69
|
+
<key>shell</key>
|
70
|
+
<string>/bin/bash</string>
|
71
|
+
<key>source</key>
|
72
|
+
<string></string>
|
73
|
+
</dict>
|
74
|
+
<key>BundleIdentifier</key>
|
75
|
+
<string>com.apple.RunShellScript</string>
|
76
|
+
<key>CFBundleVersion</key>
|
77
|
+
<string>2.0.3</string>
|
78
|
+
<key>CanShowSelectedItemsWhenRun</key>
|
79
|
+
<false/>
|
80
|
+
<key>CanShowWhenRun</key>
|
81
|
+
<true/>
|
82
|
+
<key>Category</key>
|
83
|
+
<array>
|
84
|
+
<string>AMCategoryUtilities</string>
|
85
|
+
</array>
|
86
|
+
<key>Class Name</key>
|
87
|
+
<string>RunShellScriptAction</string>
|
88
|
+
<key>IgnoresInput</key>
|
89
|
+
<true/>
|
90
|
+
<key>InputUUID</key>
|
91
|
+
<string>7F4528A5-9FDB-456C-A6E9-590E2E31F836</string>
|
92
|
+
<key>Keywords</key>
|
93
|
+
<array>
|
94
|
+
<string>Shell</string>
|
95
|
+
<string>Script</string>
|
96
|
+
<string>Command</string>
|
97
|
+
<string>Run</string>
|
98
|
+
<string>Unix</string>
|
99
|
+
</array>
|
100
|
+
<key>OutputUUID</key>
|
101
|
+
<string>2B8FFB47-FE25-4772-AFBB-9BC07D33E03E</string>
|
102
|
+
<key>UUID</key>
|
103
|
+
<string>D7F563F1-66D8-44B5-BFF5-7ADA13C46487</string>
|
104
|
+
<key>UnlocalizedApplications</key>
|
105
|
+
<array>
|
106
|
+
<string>Automator</string>
|
107
|
+
</array>
|
108
|
+
<key>arguments</key>
|
109
|
+
<dict>
|
110
|
+
<key>0</key>
|
111
|
+
<dict>
|
112
|
+
<key>default value</key>
|
113
|
+
<integer>0</integer>
|
114
|
+
<key>name</key>
|
115
|
+
<string>inputMethod</string>
|
116
|
+
<key>required</key>
|
117
|
+
<string>0</string>
|
118
|
+
<key>type</key>
|
119
|
+
<string>0</string>
|
120
|
+
<key>uuid</key>
|
121
|
+
<string>0</string>
|
122
|
+
</dict>
|
123
|
+
<key>1</key>
|
124
|
+
<dict>
|
125
|
+
<key>default value</key>
|
126
|
+
<string></string>
|
127
|
+
<key>name</key>
|
128
|
+
<string>source</string>
|
129
|
+
<key>required</key>
|
130
|
+
<string>0</string>
|
131
|
+
<key>type</key>
|
132
|
+
<string>0</string>
|
133
|
+
<key>uuid</key>
|
134
|
+
<string>1</string>
|
135
|
+
</dict>
|
136
|
+
<key>2</key>
|
137
|
+
<dict>
|
138
|
+
<key>default value</key>
|
139
|
+
<false/>
|
140
|
+
<key>name</key>
|
141
|
+
<string>CheckedForUserDefaultShell</string>
|
142
|
+
<key>required</key>
|
143
|
+
<string>0</string>
|
144
|
+
<key>type</key>
|
145
|
+
<string>0</string>
|
146
|
+
<key>uuid</key>
|
147
|
+
<string>2</string>
|
148
|
+
</dict>
|
149
|
+
<key>3</key>
|
150
|
+
<dict>
|
151
|
+
<key>default value</key>
|
152
|
+
<string></string>
|
153
|
+
<key>name</key>
|
154
|
+
<string>COMMAND_STRING</string>
|
155
|
+
<key>required</key>
|
156
|
+
<string>0</string>
|
157
|
+
<key>type</key>
|
158
|
+
<string>0</string>
|
159
|
+
<key>uuid</key>
|
160
|
+
<string>3</string>
|
161
|
+
</dict>
|
162
|
+
<key>4</key>
|
163
|
+
<dict>
|
164
|
+
<key>default value</key>
|
165
|
+
<string>/bin/sh</string>
|
166
|
+
<key>name</key>
|
167
|
+
<string>shell</string>
|
168
|
+
<key>required</key>
|
169
|
+
<string>0</string>
|
170
|
+
<key>type</key>
|
171
|
+
<string>0</string>
|
172
|
+
<key>uuid</key>
|
173
|
+
<string>4</string>
|
174
|
+
</dict>
|
175
|
+
</dict>
|
176
|
+
<key>isViewVisible</key>
|
177
|
+
<true/>
|
178
|
+
<key>location</key>
|
179
|
+
<string>369.000000:433.000000</string>
|
180
|
+
<key>nibPath</key>
|
181
|
+
<string>/System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib</string>
|
182
|
+
</dict>
|
183
|
+
<key>isViewVisible</key>
|
184
|
+
<true/>
|
185
|
+
</dict>
|
186
|
+
</array>
|
187
|
+
<key>connectors</key>
|
188
|
+
<dict/>
|
189
|
+
<key>workflowMetaData</key>
|
190
|
+
<dict>
|
191
|
+
<key>folderActionFolderPath</key>
|
192
|
+
<string>~/cave.pics/inbound</string>
|
193
|
+
<key>workflowTypeIdentifier</key>
|
194
|
+
<string>com.apple.Automator.folderAction</string>
|
195
|
+
</dict>
|
196
|
+
</dict>
|
197
|
+
</plist>
|
data/exe/photoapp
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
$LOAD_PATH.unshift(File.expand_path("../lib", File.dirname(__FILE__)))
|
4
4
|
|
5
5
|
require 'optparse'
|
6
|
-
require '
|
6
|
+
require 'photoapp'
|
7
7
|
|
8
8
|
options = {}
|
9
9
|
|
@@ -16,9 +16,17 @@ end.parse!
|
|
16
16
|
if ARGV.first == 'setup'
|
17
17
|
ARGV.shift
|
18
18
|
if `brew list imagemagick` =~ /Error:/
|
19
|
-
system "brew install imagemagick"
|
19
|
+
system "brew update && brew install imagemagick"
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
|
+
unless `ls /Library/Automator` =~ /Import Files into Photos/
|
23
|
+
system "say 'please install Automator actions for Photos app'"
|
24
|
+
system "open #{Photoapp.gem_dir('assets/photos-action-installer.pkg')}"
|
25
|
+
end
|
26
|
+
|
27
|
+
system "ln -s #{Photoapp.gem_dir('assets/photoapp-process.workflow')} #{File.expand_path("~/Library/Workflows/Applications/Folder\ Actions/")}"
|
28
|
+
system "open /System/Library/CoreServices/Folder\ Actions\ Setup.app"
|
29
|
+
system "ln -s #{Photoapp.gem_dir('assets/Reprint.app')} /Applications/"
|
22
30
|
else
|
23
31
|
|
24
32
|
if ARGV.first == 'process'
|
@@ -27,8 +35,5 @@ else
|
|
27
35
|
Photoapp::Session.new(options).process
|
28
36
|
elsif ARGV.first == 'upload'
|
29
37
|
Photoapp::Session.new(options).upload
|
30
|
-
elsif ARGV.first == 'reprint'
|
31
|
-
ARGV.shift
|
32
|
-
Photoapp.print(ARGV.shift)
|
33
38
|
end
|
34
39
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require "
|
2
|
-
require "
|
3
|
-
require "
|
1
|
+
require "photoapp/version"
|
2
|
+
require "photoapp/photo"
|
3
|
+
require "photoapp/s3"
|
4
4
|
require 'yaml'
|
5
5
|
require 'colorator'
|
6
6
|
|
@@ -86,12 +86,11 @@ module Photoapp
|
|
86
86
|
|
87
87
|
photos.each do |p|
|
88
88
|
p.write
|
89
|
+
upload
|
89
90
|
p.add_to_photos
|
90
91
|
Photoapp.print(p.print_dest)
|
91
92
|
end
|
92
93
|
|
93
|
-
upload
|
94
|
-
|
95
94
|
FileUtils.rm_rf tmp
|
96
95
|
end
|
97
96
|
|
File without changes
|
File without changes
|
data/photoapp.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require '
|
4
|
+
require 'photoapp/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "desoto-photoapp"
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.summary = %q{A tool for processing cave photos for DeSoto Caverns.}
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|icon)/}) }
|
16
16
|
spec.bindir = "exe"
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: desoto-photoapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rmagick
|
@@ -109,7 +109,49 @@ files:
|
|
109
109
|
- LICENSE.txt
|
110
110
|
- README.md
|
111
111
|
- Rakefile
|
112
|
+
- assets/Reprint.app/Contents/Info.plist
|
113
|
+
- assets/Reprint.app/Contents/MacOS/Application Stub
|
114
|
+
- assets/Reprint.app/Contents/Resources/AutomatorApplet.icns
|
115
|
+
- assets/Reprint.app/Contents/Resources/Dutch.lproj/ApplicationStub.nib
|
116
|
+
- assets/Reprint.app/Contents/Resources/English.lproj/ApplicationStub.nib
|
117
|
+
- assets/Reprint.app/Contents/Resources/French.lproj/ApplicationStub.nib
|
118
|
+
- assets/Reprint.app/Contents/Resources/German.lproj/ApplicationStub.nib
|
119
|
+
- assets/Reprint.app/Contents/Resources/Italian.lproj/ApplicationStub.nib
|
120
|
+
- assets/Reprint.app/Contents/Resources/Japanese.lproj/ApplicationStub.nib
|
121
|
+
- assets/Reprint.app/Contents/Resources/Spanish.lproj/ApplicationStub.nib
|
122
|
+
- assets/Reprint.app/Contents/Resources/ar.lproj/ApplicationStub.nib
|
123
|
+
- assets/Reprint.app/Contents/Resources/ca.lproj/ApplicationStub.nib
|
124
|
+
- assets/Reprint.app/Contents/Resources/cs.lproj/ApplicationStub.nib
|
125
|
+
- assets/Reprint.app/Contents/Resources/da.lproj/ApplicationStub.nib
|
126
|
+
- assets/Reprint.app/Contents/Resources/el.lproj/ApplicationStub.nib
|
127
|
+
- assets/Reprint.app/Contents/Resources/es_MX.lproj/ApplicationStub.nib
|
128
|
+
- assets/Reprint.app/Contents/Resources/fi.lproj/ApplicationStub.nib
|
129
|
+
- assets/Reprint.app/Contents/Resources/he.lproj/ApplicationStub.nib
|
130
|
+
- assets/Reprint.app/Contents/Resources/hr.lproj/ApplicationStub.nib
|
131
|
+
- assets/Reprint.app/Contents/Resources/hu.lproj/ApplicationStub.nib
|
132
|
+
- assets/Reprint.app/Contents/Resources/id.lproj/ApplicationStub.nib
|
133
|
+
- assets/Reprint.app/Contents/Resources/ko.lproj/ApplicationStub.nib
|
134
|
+
- assets/Reprint.app/Contents/Resources/ms.lproj/ApplicationStub.nib
|
135
|
+
- assets/Reprint.app/Contents/Resources/no.lproj/ApplicationStub.nib
|
136
|
+
- assets/Reprint.app/Contents/Resources/pl.lproj/ApplicationStub.nib
|
137
|
+
- assets/Reprint.app/Contents/Resources/pt.lproj/ApplicationStub.nib
|
138
|
+
- assets/Reprint.app/Contents/Resources/pt_PT.lproj/ApplicationStub.nib
|
139
|
+
- assets/Reprint.app/Contents/Resources/ro.lproj/ApplicationStub.nib
|
140
|
+
- assets/Reprint.app/Contents/Resources/ru.lproj/ApplicationStub.nib
|
141
|
+
- assets/Reprint.app/Contents/Resources/sk.lproj/ApplicationStub.nib
|
142
|
+
- assets/Reprint.app/Contents/Resources/sv.lproj/ApplicationStub.nib
|
143
|
+
- assets/Reprint.app/Contents/Resources/th.lproj/ApplicationStub.nib
|
144
|
+
- assets/Reprint.app/Contents/Resources/tr.lproj/ApplicationStub.nib
|
145
|
+
- assets/Reprint.app/Contents/Resources/uk.lproj/ApplicationStub.nib
|
146
|
+
- assets/Reprint.app/Contents/Resources/vi.lproj/ApplicationStub.nib
|
147
|
+
- assets/Reprint.app/Contents/Resources/zh_CN.lproj/ApplicationStub.nib
|
148
|
+
- assets/Reprint.app/Contents/Resources/zh_TW.lproj/ApplicationStub.nib
|
149
|
+
- assets/Reprint.app/Contents/document.wflow
|
150
|
+
- "assets/Reprint.app/Icon\r"
|
112
151
|
- assets/SourceSansPro-Semibold.ttf
|
152
|
+
- assets/photoapp-process.workflow/Contents/Info.plist
|
153
|
+
- assets/photoapp-process.workflow/Contents/QuickLook/Preview.png
|
154
|
+
- assets/photoapp-process.workflow/Contents/document.wflow
|
113
155
|
- assets/photos-action-installer.pkg
|
114
156
|
- assets/watermark.png
|
115
157
|
- bin/console
|
@@ -118,13 +160,13 @@ files:
|
|
118
160
|
- lib/adjust-image.workflow/Contents/Info.plist
|
119
161
|
- lib/adjust-image.workflow/Contents/QuickLook/Preview.png
|
120
162
|
- lib/adjust-image.workflow/Contents/document.wflow
|
121
|
-
- lib/desoto-photoapp.rb
|
122
|
-
- lib/desoto-photoapp/photo.rb
|
123
|
-
- lib/desoto-photoapp/s3.rb
|
124
|
-
- lib/desoto-photoapp/version.rb
|
125
163
|
- lib/import-photos.workflow/Contents/Info.plist
|
126
164
|
- lib/import-photos.workflow/Contents/QuickLook/Thumbnail.png
|
127
165
|
- lib/import-photos.workflow/Contents/document.wflow
|
166
|
+
- lib/photoapp.rb
|
167
|
+
- lib/photoapp/photo.rb
|
168
|
+
- lib/photoapp/s3.rb
|
169
|
+
- lib/photoapp/version.rb
|
128
170
|
- photoapp.gemspec
|
129
171
|
homepage:
|
130
172
|
licenses:
|