I have 2 applescript apps 1st one actually invokes the 2nd app to run.
App 1
on open location this_URL
tell application "App2" to activate
end open location
App2
# does Something
Now I want to send the variable this_URL
from app 1 to app 2 so that it can process it.
I am new to applescript and I searched alot but all I got was how to send commands to prebuilt apps. I want to know how can I send the variable and how can I handle that variable in the second app ?
Edit :
Just adding a sample approach what I am doing now but I don't think that this is the best way of doing it.
App1:
on open location this_URL
set the clipboard to this_URL
tell application "App2" to activate
end open location
App2:
set this_URL to ( the clipboard as text )
# does Something
set the clipboard to ""