Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 14, 2019 2:45 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Drop files from finder on to app to launch
PostPosted: Thu Mar 07, 2013 12:32 pm 
Offline

Joined: Tue May 22, 2007 11:01 am
Posts: 62
Hi all,

Is there a way to enable the dropping of multiple files (all of the same type, e.g. PDF) on to an application icon to open it and then handle the dropped items. I've established it's quite easy using app.openDocument, but this only handles one file (even if you drop more than one). I'm guessing I'll have to use the app.HandleAppleEvent, but the documentation on this seems elusive (to me).

Any help, as always, greatly appreciated.

Kind regards,
Dave.

_________________
__________________________________

NDTec Computer Services Limited
- MacBook Pro 17", MacPro, XServe
- RealStudio 2011r2 Enterprise, RealSQL Server 2008
- MBS Plug-ins, Einhugur Plug-ins


Top
 Profile  
Reply with quote  
 Post subject: Re: Drop files from finder on to app to launch
PostPosted: Thu Mar 07, 2013 4:53 pm 
Offline

Joined: Tue May 22, 2007 11:01 am
Posts: 62
Ignore me - I'm the village idiot.

_________________
__________________________________

NDTec Computer Services Limited
- MacBook Pro 17", MacPro, XServe
- RealStudio 2011r2 Enterprise, RealSQL Server 2008
- MBS Plug-ins, Einhugur Plug-ins


Top
 Profile  
Reply with quote  
 Post subject: Re: Drop files from finder on to app to launch
PostPosted: Thu Mar 07, 2013 5:13 pm 
Offline

Joined: Mon Aug 14, 2006 9:33 pm
Posts: 1774
How did you handle multiple files. I thought I knew, but in trying to answer your post, couldn't get it to work.

_________________
Roger Clary
Class One Software
Educational Software for Lifelong Learning
http://www.classonesoftware.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Drop files from finder on to app to launch
PostPosted: Thu Mar 07, 2013 5:35 pm 
Offline

Joined: Tue May 22, 2007 11:01 am
Posts: 62
Embarrassed really... it calls the app.openDocument event for each file dropped on to the icon. I just created an array in the app and appended the 'item' in the openDocument event to it, then processed the array later.

Dave.

_________________
__________________________________

NDTec Computer Services Limited
- MacBook Pro 17", MacPro, XServe
- RealStudio 2011r2 Enterprise, RealSQL Server 2008
- MBS Plug-ins, Einhugur Plug-ins


Top
 Profile  
Reply with quote  
 Post subject: Re: Drop files from finder on to app to launch
PostPosted: Thu Mar 07, 2013 5:47 pm 
Offline

Joined: Mon Aug 14, 2006 9:33 pm
Posts: 1774
That's right. Multiple event calls. I was thinking there was an array passed and couldn't find it. Thanks

_________________
Roger Clary
Class One Software
Educational Software for Lifelong Learning
http://www.classonesoftware.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group