Code: Select all
command showShareOptions pText, pImagePath, pURL
replace " " with "%20" in pURL --replace space
--If the length of the URL is
--put the length of pURL into tLength
if tLength > 75 then
put getShortURL(pURL) into pURL
end if
--Get out is not mobile
if the environment is not "mobile" then
exit showShareOptions
end if
try
mergPopActivity pText, "", pURL
catch tError
answer tError
end try