text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
set visible of text field "loginEmailInput" to true | audiMate.applescript |
set visible of text field "loginPasswordInput" to true | audiMate.applescript |
else if toggleAction is "active" then | audiMate.applescript |
set visible of text field "audiMateLoginTitle" to false | audiMate.applescript |
set visible of text field "loginLoadingText" to true | audiMate.applescript |
set visible of button "loginButton" to false | audiMate.applescript |
set visible of button "registerButton" to false | audiMate.applescript |
set visible of text field "loginEmailInput" to false | audiMate.applescript |
set visible of text field "loginPasswordInput" to false | audiMate.applescript |
end toggleVisibleLoginItems | audiMate.applescript |
on load_portrait(myAlias, outputWindow) | audiMate.applescript |
if outputWindow is "profileWindow" then | audiMate.applescript |
set myImageViewName to "portraitProfile" | audiMate.applescript |
else if outputWindow is "homeWindow" then | audiMate.applescript |
set myImageViewName to "portraitHome" | audiMate.applescript |
else if outputWindow is "conversationWindow" then | audiMate.applescript |
set myImageViewName to "portraitConversation" | audiMate.applescript |
set myPortraitURL to (homeRootURL & "displayPortrait.php") as string | audiMate.applescript |
set myPortrait_f to (appsup & "currentPortrait.jpeg") as string | audiMate.applescript |
do shell script ("rm " & quoted form of myPortrait_f) | audiMate.applescript |
set myPortraitData to ("curl --data " & quoted form of ("alias=" & myAlias) & " -e 'audiMate.displayPortrait' " & quoted form of myPortraitURL & " -o " & quoted form of myPortrait_f) | audiMate.applescript |
set myPortraitData to (do shell script myPortraitData) | audiMate.applescript |
set image of image view myImageViewName of window outputWindow to load image (appsup & "currentPortrait.jpeg") | audiMate.applescript |
set image of image view myImageViewName of window outputWindow to load image ("NSUser") | audiMate.applescript |
end load_portrait | audiMate.applescript |
on load_userTracks(myLoginAlias, outputWindow) | audiMate.applescript |
if outputWindow is "homeWindow" then | audiMate.applescript |
set trackTable to (table view 1 of scroll view 1 of tab view item "artistsTab" of tab view 1 of window "homeWindow") | audiMate.applescript |
delete data source artistsTab_DataSource | audiMate.applescript |
set trackTable to (table view 1 of scroll view 1 of window "profileWindow") | audiMate.applescript |
set visible of scroll view 1 of window "profileWindow" to true | audiMate.applescript |
delete data source profileTracks_DataSource | audiMate.applescript |
set myArtistsURL to (homeRootURL & "getMyArtists.php") as string | audiMate.applescript |
set myArtists to (do shell script ("curl --data " & quoted form of ("alias=" & myLoginAlias) & " -e 'audiMate.getMyArtists' " & quoted form of myArtistsURL)) as string | audiMate.applescript |
if myArtists is "0" then | audiMate.applescript |
set visible of scroll view 1 of window outputWindow to false | audiMate.applescript |
set contents of text field "profileNoInterests" of window outputWindow to (myLoginAlias & " has no interests.") | audiMate.applescript |
set visible of trackTable to true | audiMate.applescript |
set myArtists to every paragraph of myArtists | audiMate.applescript |
set myArtists to cleanMyList(myArtists, {""}) | audiMate.applescript |
set artistsTab_DataSource to make new data source at end of data sources | audiMate.applescript |
tell artistsTab_DataSource | audiMate.applescript |
make new data column at end of data columns with properties {name:"artistName", sort order:ascending, sort type:alphabetical, sort case sensitivity:case sensitive} | audiMate.applescript |
set data source of trackTable to artistsTab_DataSource | audiMate.applescript |
repeat with myRepeatVar from 1 to (count myArtists) | audiMate.applescript |
make new data row at end of data rows | audiMate.applescript |
set contents of data cell "artistName" of data row myRepeatVar to (item myRepeatVar of myArtists as string) | audiMate.applescript |
set profileTracks_DataSource to make new data source at end of data sources | audiMate.applescript |
tell profileTracks_DataSource | audiMate.applescript |
set data source of trackTable to profileTracks_DataSource | audiMate.applescript |
end load_userTracks | audiMate.applescript |
on load_userMates(myLoginAlias) | audiMate.applescript |
set myArtistsURL to (homeRootURL & "getMyMates.php") as string | audiMate.applescript |
set myMates to (do shell script ("curl --data " & quoted form of ("alias=" & myLoginAlias) & " -e 'audiMate.getMyMates' " & quoted form of myArtistsURL)) as string | audiMate.applescript |
set myMates to every paragraph of myMates | audiMate.applescript |
set myMates to alphabetize(myMates) | audiMate.applescript |
set myMates to cleanMyList(myMates, {""}) | audiMate.applescript |
set content of (table view 1 of scroll view 1 of tab view item "matesTab" of tab view 1 of window "homeWindow") to myMates | audiMate.applescript |
end load_userMates | audiMate.applescript |
on updateMates(myMateAction, myMate_alias) | audiMate.applescript |
set myMates to (contents of data cell 1 of every data row of data source of table view 1 of scroll view 1 of tab view item "matesTab" of tab view 1 of window "homeWindow") | audiMate.applescript |
if myMateAction is "Forget" then | audiMate.applescript |
set myMates to cleanMyList(myMates, {myMate_alias}) | audiMate.applescript |
set myMates to myMates & myMate_alias | audiMate.applescript |
set myMatesCount to (count myMates) | audiMate.applescript |
set myMates_f to (appsup & "myMates_temp.txt") as string | audiMate.applescript |
do shell script ("echo > " & quoted form of myMates_f) | audiMate.applescript |
repeat with matesLoopV from 1 to (myMatesCount) | audiMate.applescript |
set myCurrentMate to (item matesLoopV of myMates) as string | audiMate.applescript |
do shell script ("echo " & quoted form of myCurrentMate & " >> " & quoted form of myMates_f) | audiMate.applescript |
set myPostMatesURL to (homeRootURL & "updateMates.php") as string | audiMate.applescript |
set myPostMates to ("curl --form-string " & quoted form of ("strDesc=" & myLoginAlias) & " --form-string " & quoted form of ("email=" & myLoginEmail) & " --form-string " & quoted form of ("password=" & myLoginPassword) & " --form " & quoted form of ("fileUpload=@" & myMates_f) & " --form press=OK" & " -e 'audiMate.upda... | audiMate.applescript |
do shell script myPostMates | audiMate.applescript |
do shell script ("rm " & quoted form of myMates_f) | audiMate.applescript |
load_userMates(myLoginAlias) | audiMate.applescript |
end updateMates | audiMate.applescript |
on updateConversation(myConvoAction) | audiMate.applescript |
set chosenAlias to (title of window "homeWindow") as string | audiMate.applescript |
if myConvoAction is "Create" then | audiMate.applescript |
set chosenAlias to (split(chosenAlias, "'s profile")) as string | audiMate.applescript |
set myPostConvoURL to (homeRootURL & "createConversation.php") as string | audiMate.applescript |
set myPostConvo to ("curl --form-string " & quoted form of ("theirAlias=" & chosenAlias) & " --form-string " & quoted form of ("email=" & myLoginEmail) & " --form-string " & quoted form of ("password=" & myLoginPassword) & " --form press=OK" & " -e 'audiMate.createConversation' " & quoted form of (myPostConvoURL)) | audiMate.applescript |
do shell script myPostConvo | audiMate.applescript |
close panel window "profileWindow" | audiMate.applescript |
else if myConvoAction is "Forget" then | audiMate.applescript |
set chosenAlias to (split(chosenAlias, "Conversation with ")) as string | audiMate.applescript |
set myPostConvoURL to (homeRootURL & "forgetConversation.php") as string | audiMate.applescript |
set myPostConvo to ("curl --form-string " & quoted form of ("strDesc=" & myConversationID) & " --form-string " & quoted form of ("email=" & myLoginEmail) & " --form-string " & quoted form of ("password=" & myLoginPassword) & " --form press=OK" & " -e 'audiMate.forgetConversation' " & quoted form of (myPostConvoURL)) | audiMate.applescript |
close panel window "conversationWindow" | audiMate.applescript |
else if myConvoAction is "Reply" then | audiMate.applescript |
set myConversationData to display_conversation_head(chosenAlias) | audiMate.applescript |
set myAddedConversationData to (the contents of text view 1 of scroll view 1 of view 2 of split view 1 of window "conversationWindow") as string | audiMate.applescript |
set (the contents of text view 1 of scroll view 1 of view 2 of split view 1 of window "conversationWindow") to "" | audiMate.applescript |
set myAddedConversationData to (myLoginAlias & ": " & myAddedConversationData & (ASCII character 10) & (ASCII character 10)) as string | audiMate.applescript |
set myConvo_f to (appsup & "myConvo_temp.txt") as string | audiMate.applescript |
do shell script ("echo " & quoted form of myConversationData & " > " & quoted form of myConvo_f) | audiMate.applescript |
do shell script ("echo " & quoted form of myAddedConversationData & " >> " & quoted form of myConvo_f) | audiMate.applescript |
set myPostConvoURL to (homeRootURL & "updateConversation.php") as string | audiMate.applescript |
set myPostConvo to ("curl --form-string " & quoted form of ("strDesc=" & myConversationID) & " --form-string " & quoted form of ("email=" & myLoginEmail) & " --form-string " & quoted form of ("password=" & myLoginPassword) & " --form " & quoted form of ("fileUpload=@" & myConvo_f) & " --form press=OK" & " -e 'audiMate.... | audiMate.applescript |
do shell script ("rm " & quoted form of myConvo_f) | audiMate.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.