Error upon batch import #828
-
I'm experimenting with the
When I run the following command: I get the following output and error:
Any idea of what's going on? Many thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 18 replies
-
I just tried a test import using a similar structure and it ran fine. Please ensure you're running the most recent version of osxphotos and try again with the addition of the Also, what OS version are you running? It appears you're running osxphotos in Anaconda python 3.8. While it should work fine, I've not tested osxphotos in Anaconda. I'll also be dropping support for python 3.8 now that 3.11 is released (my policy is to support the 3 most recent versions) though osxphotos is for now still compatible with 3.8. |
Beta Was this translation helpful? Give feedback.
-
Could you try the following and see it prints "7" in the Results window? on replaceChars(stringValue, findChars, replaceChars)
(* replace findChars in stringValue with replaceChars
Args:
stringValue: a string to search
findChars: string of one or more characters to find in stringValue
replaceChars: string of one of more characters to use as replacement for findChars
Returns:
string with replacements made
*)
set oldDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to the findChars
set the itemList to every text item of stringValue
set AppleScript's text item delimiters to the replaceChars
set newString to the itemList as string
set AppleScript's text item delimiters to oldDelimiters
return newString
end replaceChars
on stringToNumber(strValue)
(* Converts a string representation of real number in form x.y or x,y into a number
This is required because AppleScript throws in error with " "7.0" as number "
in locales that use "," as the decimal separator, expecting "7,0"
Args:
strValue: string value to return
Returns:
number
*)
try
return strValue as number
on error
-- assume we're in a locale that uses , as decimal separator and try again
return replaceChars(strValue, ".", ",") as number
end try
end stringToNumber
stringToNumber("7.0") |
Beta Was this translation helpful? Give feedback.
-
Try v0.54.1 which I think should fix this problem. |
Beta Was this translation helpful? Give feedback.
Try v0.54.1 which I think should fix this problem.