Michel - I checked the default and it is PREVIEW - when I open a TIFF file directly in FINDER it opens with PREVIEW - Just doest work through XOJO “f.open”
Tim - My simple code above worked before - makes sense the upgrade caused an issue
[quote=482496:@Jim McDermott]Is there a simple change for “GetFolderItem”?
[/quote]
Not if you’re having permission issues. Apple no longer allows developers arbitrary access to any file they wish. This is to protect the user. If the file is not located in Application Support or Temporary, you must ask the user for the file with an Open or Save dialog.
A test you can perform to see if this is related is to check if the FolderItem is nil.
dim tf as FolderItem
tf= GetFolderItem(sql, FolderItem.PathTypeShell)
if tf = nil then
MsgBox("Failed to acquire FolderItem")
return
end
if tf.Exists = false then
MsgBox(tf.Name + " does not exist")
return
end
// Here, we've checked that we got a FolderItem from the API and that it does exist
tf.Open
If either of those error messages displays, it will help track down the source of the problem.
I’m actually more interested in how Xojo builds, rather than OS upgrades. Please try making a build of the exact same code with 2019r1.1 and whatever version you’re using (FolderItem.Open is from API 2.0). Run both on Catalina and compare the results.
#58856 is visible to pre-release testers only it seems. I’ve requested it be made public.
Here’s the title: 58856 - folderitem.launch and folderitem.open can not launch/open files on macOS when files were copied from MSDOS (FAT) formatted disc
The gist of the issue seems to be that if the source of the TIFF was a FAT formatted disk, FolderItem.Launch fails.
Thanks, Thats it !! All of my TIFF files are pre MAC !!!
If there does not seem to be a solution, do you have any suggestions on an easy procedure to
Query the TIFF filenames (I have the filenames stored in my SQLite Database) and convert them to PDF?
I have 120+ TIFF files in my XOJO App library.
Jim
example …
Open recordset
do until .eof
convert filename.TIFF to filename.PDF
loop
close recordset