Skip to content

Commit c0aa39d

Browse files
committed
Fixed OS X path issues.
1 parent 19f9a11 commit c0aa39d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

addons/IGOR/MosaicUtils.ipf

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ End
4242

4343
Function/S QueryBuilder()
4444

45-
string SQ = "select BlockDepth, ResTime from metadata where ProcessingStatus='normal' and ResTime > 0.1 and BlockDepth between 0.05 and .8"
45+
string SQ = "select BlockDepth, ResTime from metadata where ProcessingStatus='normal'"
4646
prompt SQ, "Search Query"
4747

4848
DoPrompt "Enter query action", SQ
4949

5050
if (V_Flag)
51-
return "select BlockDepth, ResTime from metadata where ProcessingStatus='normal' and ResTime > 0.1 and BlockDepth between 0.05 and .8" // User Canceled
51+
return "select BlockDepth, ResTime from metadata where ProcessingStatus='normal' and ResTime > 0.1 and BlockDepth between 0.05 and .8 limit 100" // User Canceled
5252
endif
5353

5454
Print "Query Statement = ",SQ
@@ -62,7 +62,7 @@ Function/S BuildConnectionString()
6262
String DriverString = "DRIVER={SQLite3 Driver}"
6363
String DatabaseString = DoOpenFileDialog()
6464

65-
connectionString = DriverString+";"+"DATABASE=/"+DatabaseString+";"
65+
connectionString = DriverString+";"+"DATABASE="+DatabaseString+";"
6666
print connectionString
6767
return connectionString
6868

@@ -83,9 +83,8 @@ Function/S DoOpenFileDialog()
8383
variable test = cmpstr (platform, "MACINTOSH")
8484
if (test== 0)
8585
outputPath = ReplaceString(":", outputPath,"/")
86-
outputPath = ReplaceString("Macintosh HD", outputPath,"")
87-
else
88-
86+
outputPath = "/Volumes/"+outputPath
87+
//outputPath = ReplaceString("Macintosh HD", outputPath,"Macintosh HD")
8988
endif
9089

9190
return outputPath // Will be empty if user canceled

0 commit comments

Comments
 (0)