This content has been marked as final. Show 10 replies
When you say "open", do you mean in an external application, or import
into and display on Director's stage?
If the latter, do you have the Mix Services and TIFF Import Export xtras
I mean open in an external application. I can get it to work on the PC version but not on the mac version. Any ideas?
Is there a Mac application "registered" to open TIFF files? What happens
when you double-click a TIFF on such a Mac? What does Buddy API's
baFindApp() have to say?
The Mac opens Tiffs using Preview. I have tried using BudAPI to open a Jpeg on the Mac (in the same folder) and that does not work either. This suggests to me that it is either something to with the BudApi plug in (maybe the cross platform file work differently on a mac), or the path I have entered is incorrect.
The script I am using is ;
baOpenFile("@\\test.tif" , "normal" )
The baOpenFile method returns a value that can be used to determine
success, or /why/ it failed if it did:
tValue = baOpenFile(...)
if tValue <> 0 then -- check the docs for numbers to be checking against
-- use the docs to determine what the failure condition was
Thank you for that. I used the piece of code... when running the director projector on the PC it opens the file properly and doesn't show an error code. On the Mac it shows an error code of 0. Any suggestions?
> On the Mac it shows an error code of 0. Any suggestions?
I don't have the Mac docs to hand - what does that return value mean for
this function in the Mac version of the xtra?
What does baFindApp("TIFF") return?
Sorry for the late response. I have managed to get BudApi to work on the mac projector. Using the "BaOpenFile" command I can get it to open a TIFF the mac as I wanted. Unfortunately I have to put in the whole file path ("MacintoshHD:Users:grannysmith:Desktop:test.tif") for it to work and cannot get it to to open the file locally, i.e. by just putting in something like "test.tif" or "@\\test.tif".
Do you have any suggestions? Any help would be very much appreciated.
If you know that the file will be on the desktop, like in your example,
you can use Buddy's baSysFolder() command
Using the @ sign is similar to "the moviePath" - it will assume that the
tif is in the same folder as the projector.
I've cracked it!
Thank you both very much for your help. It is very very much appreciated.