Skip to content

Commit ed4b534

Browse files
committed
fix iconv error
1 parent 65a87cb commit ed4b534

File tree

9 files changed

+66
-2
lines changed

9 files changed

+66
-2
lines changed

PoorSelect.app/Contents/Info.plist

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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>CFBundleAllowMixedLocalizations</key>
6+
<true/>
7+
<key>CFBundleDevelopmentRegion</key>
8+
<string>English</string>
9+
<key>CFBundleExecutable</key>
10+
<string>applet</string>
11+
<key>CFBundleIconFile</key>
12+
<string>applet</string>
13+
<key>CFBundleIdentifier</key>
14+
<string>com.apple.ScriptEditor.id.PoorSelect</string>
15+
<key>CFBundleInfoDictionaryVersion</key>
16+
<string>6.0</string>
17+
<key>CFBundleName</key>
18+
<string>PoorSelect</string>
19+
<key>CFBundlePackageType</key>
20+
<string>APPL</string>
21+
<key>CFBundleShortVersionString</key>
22+
<string>0.2</string>
23+
<key>CFBundleSignature</key>
24+
<string>aplt</string>
25+
<key>CFBundleVersion</key>
26+
<string>0.2</string>
27+
<key>LSMinimumSystemVersionByArchitecture</key>
28+
<dict>
29+
<key>x86_64</key>
30+
<string>10.6</string>
31+
</dict>
32+
<key>LSRequiresCarbon</key>
33+
<true/>
34+
<key>NSHumanReadableCopyright</key>
35+
<string>© veadar</string>
36+
<key>WindowState</key>
37+
<dict>
38+
<key>bundleDividerCollapsed</key>
39+
<true/>
40+
<key>bundlePositionOfDivider</key>
41+
<real>0.0</real>
42+
<key>dividerCollapsed</key>
43+
<false/>
44+
<key>eventLogLevel</key>
45+
<integer>2</integer>
46+
<key>name</key>
47+
<string>ScriptWindowState</string>
48+
<key>positionOfDivider</key>
49+
<real>421</real>
50+
<key>savedFrame</key>
51+
<string>160 383 700 672 0 0 1920 1057 </string>
52+
<key>selectedTab</key>
53+
<string>description</string>
54+
</dict>
55+
</dict>
56+
</plist>

PoorSelect.app/Contents/MacOS/applet

24.4 KB
Binary file not shown.

PoorSelect.app/Contents/PkgInfo

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
APPLaplt
Binary file not shown.
95.2 KB
Binary file not shown.
362 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf470
2+
{\fonttbl}
3+
{\colortbl;\red255\green255\blue255;}
4+
}

PoorSelect.applescript

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ on main(userInput)
5252
set posixPath to (targetFolder as alias)'s POSIX path
5353
end tell
5454

55-
set shellText to "ls " & quoted form of posixPath & " | iconv -f UTF-8-MAC -t UTF-8 | grep " & userInput
55+
set shellText to "ls " & quoted form of posixPath & " | iconv -c -f UTF-8-MAC -t UTF-8 | grep " & userInput
5656

5757
try
5858
set tempList to do shell script shellText
@@ -64,8 +64,10 @@ on main(userInput)
6464
set fileList to {}
6565

6666
repeat with an_item in contents of listWrapper
67+
try --iconvで変換できなかったファイルを無視する
6768
set filePath to posixPath & an_item
6869
set end of fileList to POSIX file filePath as alias
70+
end try
6971
end repeat
7072

7173
tell application "Finder"

readme.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ Click Here → [Download](https://github.com/veadar/PoorSelect/releases)
3131
- <a href="http://memogakisouko.appspot.com/MenuBarAppleScript.html">MenuBarAppleScript</a>
3232
- [IconEden
3333
](https://www.iconfinder.com/icons/61494/30_filter_icon)
34-
- [sed・grepで濁点と改行をまともに扱う方法](http://d.hatena.ne.jp/zariganitosh/20100930/sed_grep_cr_lf_utf8_mac)
34+
- [sed・grepで濁点と改行をまともに扱う方法](http://d.hatena.ne.jp/zariganitosh/20100930/sed_grep_cr_lf_utf8_mac)
35+
- [iconv: 変換エラーがあってもスキップ](http://bmath.org/wordpress/?p=1281)

0 commit comments

Comments
 (0)