applescript - Extracting value of author <class > id property -
i trying author id tweet in mac twitter app.
tell application "twitter" properties of item 3 of status of (home timeline of account 1) end tell 
tell application "twitter" author of item 3 of status of (home timeline of account 1) end tell 
how can isolate "128938832" ?
solution: chris applescript-users mailing list answered question. author property has user id property. user id of author of item 3 of status of (home timeline of account 1) returns "128938832".
i don't have twitter, if there aren't terms id of author, cheat forcing error , extract number error message, example:
tell application "twitter" try (author of item 3 of status of (home timeline of account 1)) number -- force error on error errmess -- extract info error message set here (offset of quote in errmess) + 1 -- first quote set there here + (offset of quote in (text here thru -1 of errmess)) - 2 -- second quote set authorid text here thru there of errmess end try
Comments
Post a Comment