Error opening complex URLs in Contacts using Open URL script
Posted: Tue Jan 12, 2010 8:34 am
Hi there. I've noticed that trying to open a complex URL using the Open URL script in SeedCode complete is not working once it hits the "SeedCode_GetScriptParameter" custom function. I think it's because there's an equal sign in the URL:
Here's a sample URL I'm trying to open... but nothing happens. I believe the the custom function leaves the "$Address" variable empty:
http://www.facebook.com/profile.php?id=1170694181
What's the best way to get around this? Thanks. -Charlie
Here's the "SeedCode_GetScriptParameter" custom function:
Let ( [
string = Substitute ( Get ( ScriptParameter ) ; [ "\"" ; "^^" ] ; [ " ;" ; ";" ] ; [ ";" ; "\" ;" ] ; [ "= " ; "=" ] ; ["=" ; " = \"" ] ; ["¶" ; "~~" ] ) & "\"" ;
eval = Evaluate ( "Let ( [" & string & "] ;" & Name & " )" ) ;
result = Substitute ( eval ; [ "^^" ; "\"" ] ; [ "~~" ; "¶" ] )
] ;
If ( result ="?" ; "" ; result )
)
Here's a sample URL I'm trying to open... but nothing happens. I believe the the custom function leaves the "$Address" variable empty:
http://www.facebook.com/profile.php?id=1170694181
What's the best way to get around this? Thanks. -Charlie
Here's the "SeedCode_GetScriptParameter" custom function:
Let ( [
string = Substitute ( Get ( ScriptParameter ) ; [ "\"" ; "^^" ] ; [ " ;" ; ";" ] ; [ ";" ; "\" ;" ] ; [ "= " ; "=" ] ; ["=" ; " = \"" ] ; ["¶" ; "~~" ] ) & "\"" ;
eval = Evaluate ( "Let ( [" & string & "] ;" & Name & " )" ) ;
result = Substitute ( eval ; [ "^^" ; "\"" ] ; [ "~~" ; "¶" ] )
] ;
If ( result ="?" ; "" ; result )
)