Skip to content

Commit

Permalink
Remove temp exception
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed Mar 18, 2017
1 parent 86968fc commit fd485e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions FinderSyncExtension/ExtensionWorker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ struct ExtensionWorker {
return try? FileManager.default.url(for: .applicationScriptsDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
}

var bundleScriptPath: URL? {
return scriptPath?.appendingPathComponent(bundle)
}

func fileScriptPath(fileName: String) -> URL? {
return bundleScriptPath?
return scriptPath?
.appendingPathComponent(fileName)
.appendingPathExtension("scpt")
}
Expand Down Expand Up @@ -63,7 +59,7 @@ struct ExtensionWorker {

panel.begin { result in
guard result == NSFileHandlingPanelOKButton,
panel.url == self.bundleScriptPath else {
panel.url == self.scriptPath else {

self.alert(message: "Script folder was not selected")
return
Expand Down
2 changes: 0 additions & 2 deletions FinderSyncExtension/FinderSyncExtension.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.temporary-exception.apple-events</key>
<string>com.apple.finder</string>
</dict>
</plist>

0 comments on commit fd485e9

Please sign in to comment.