Looking in the user manual there is info on using D&D within an app.
But is it possible to drop a preferences file on a standalone app to cause it to launch and load those preferences on start up?
Or am I missing something?
Thanks.
			
			
									
									
						Drag & Drop to Launch an App
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
- 
				FourthWorld
 - VIP Livecode Opensource Backer

 - Posts: 10065
 - Joined: Sat Apr 08, 2006 7:05 am
 - Contact:
 
Re: Drag & Drop to Launch an App
On OS X the paths of files dropped onto an app are available from the request command within an appleEvent handler, checking for the oapp event - see the dictionary entry for "appleEvent" for details.
On Windows and Linux the paths of files dropped on the app are available in the global vars $1, $2, etc. You can obtain the number of such globals by checking the value of $#.
			
			
									
									On Windows and Linux the paths of files dropped on the app are available in the global vars $1, $2, etc. You can obtain the number of such globals by checking the value of $#.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
						LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Drag & Drop to Launch an App
Hi Mike,
welcome to the forum!
Sorry, I did not try this before myself, but check the entry for $ (dollar sign) in the dictionary.
Best
Klaus
			
			
									
									
						welcome to the forum!
Sorry, I did not try this before myself, but check the entry for $ (dollar sign) in the dictionary.
Best
Klaus
Re: Drag & Drop to Launch an App
Thanks folks, found useful stuff in the lessons.
It's just a case of knowing where to look first.
			
			
									
									
						It's just a case of knowing where to look first.
