ShareShortcuts

Sportscard Search

theslug
Fork “Sportscard Search”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so theslug gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
41K
Saved
0
Actions
72
Category
API
Version
1.0
Language
EN

Search for Antique, Autograph, Baseball card, coins, memorabilia, pawn, or stamp shops in your area.

What's New

Version 1.0

First release

Version History
1.0 May 31, 2022

First release

What it does

72 actions
  1. Comment
    This Shortcut is Created by Richard Dwyer.
  2. Get Current Weather
  3. Set Variable
    CurLoc
  4. Text
  5. Change Case
  6. Split Text
  7. Copy to Clipboard
  8. Set Variable
    Catogory
  9. Filter Files
  10. Choose from List
  11. Set Variable
    Selection
  12. Search Local Businesses
  13. Choose from List
  14. Set Variable
    Selection
  15. Choose from Menu
  16. Choose from Menu
    Get Directions
  17. Get Addresses from Input
  18. Filter Locations
  19. Show Directions
  20. Choose from Menu
    Get Travel Time
  21. Text
  22. Set Variable
    TravTime
  23. Choose from Menu
    …
  24. Choose from Menu
    Walking
  25. Text
  26. Gettraveltime
  27. Text
  28. Show Result
  29. Choose from Menu
    Driving
  30. Text
  31. Gettraveltime
  32. Text
  33. Show Result
  34. Choose from Menu
    Public Transport
  35. Text
  36. Gettraveltime
  37. Text
  38. Show Result
  39. Show Directions
  40. Choose from Menu
    Cycling
  41. Text
  42. Show Directions
  43. Text
  44. Show Result
  45. Show Directions
  46. Choose from Menu
    Find Phone Number
  47. Search Local Businesses
  48. Get Phone Numbers
  49. Set Variable
    Phone
  50. Copy to Clipboard
  51. Text
  52. Choose from Menu
    …
  53. Choose from Menu
    Call Now? Phone
  54. Call
  55. Choose from Menu
    No
  56. Stop and Output
  57. Choose from Menu
    Find Website
  58. Get Details of Locations
  59. Search Web
  60. Choose from Menu
    Get Weather
  61. Get Weather Forecast
  62. Repeat with Each
  63. Text
  64. Combine Text
  65. Text
  66. Make Rich Text from HTML
  67. Quick Look
  68. Choose from Menu
    Copy Address
  69. Get Variable
  70. Copy to Clipboard
  71. Choose from Menu
    Stop
  72. Stop and Output

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/text'
#include 'actions/location'
#define color orange
#define glyph baseball

// This Shortcut is Created by Richard Dwyer.

getCurrentWeather()
@CurLoc
const Text = "Sportscard\nCoins\nStamps\nBaseball Cards\nSports Memorabilia\nAntique\nMemorabilia\nPawn Shop\nAutograph"
const Text1 = uppercase(Text)
const Text2 = splitText(Text1)
setClipboard(Text2)
@Catogory = Text2
const Files = filterFiles(@Catogory, "Name", "A to Z")
chooseFromList(Files, "Select a Category ")
@Selection
rawAction("is.workflow.actions.searchlocalbusinesses", {
	"WFInput": "@CurLoc",
	"WFSearchQuery": "{@Selection}",
	"WFSearchRadius": 50
})
chooseFromList(LocalBusinesses)
@Selection

menu nil {
item "Get Directions":
	const Addresses = getAddresses(@Selection)
	rawAction("is.workflow.actions.filter.locations", {
		"WFContentItemFilter": "",
		"WFContentItemInputParameter": "Addresses",
		"WFContentItemSortOrder": "A to Z",
		"WFContentItemSortProperty": "Street"
	})
	rawAction("is.workflow.actions.getdirections", {
		"WFDestination": "Locations",
		"WFGetDirectionsActionApp": "Google Maps"
	})
item "Get Travel Time":
	@TravTime = "{}\n"
	menu  {
	item "Walking":
		const Text3 = "{@TravTime}"
		rawAction("is.workflow.actions.gettraveltime", {
			"WFDestination": "Text3",
			"WFGetDirectionsActionMode": "Walking"
		})
		show()
	item "Driving":
		const Text4 = "{@TravTime}"
		rawAction("is.workflow.actions.gettraveltime", {
			"WFDestination": "Text4"
		})
		show()
	item "Public Transport":
		const Text4 = "{@TravTime}"
		rawAction("is.workflow.actions.gettraveltime", {
			"WFDestination": "Text4",
			"WFGetDirectionsActionMode": "Transit"
		})
		show()
		rawAction("is.workflow.actions.getdirections", {
			"WFDestination": "@TravTime",
			"WFGetDirectionsActionApp": "Google Maps",
			"WFGetDirectionsActionMode": "Transit"
		})
	item "Cycling":
		rawAction("is.workflow.actions.getdirections", {
			"WFDestination": "@TravTime",
			"WFGetDirectionsActionApp": "Google Maps",
			"WFGetDirectionsActionMode": "Biking"
		})
		show()
		rawAction("is.workflow.actions.getdirections", {
			"WFDestination": "@TravTime",
			"WFGetDirectionsActionApp": "Google Maps",
			"WFGetDirectionsActionMode": "Transit"
		})
	}
item "Find Phone Number":
	rawAction("is.workflow.actions.searchlocalbusinesses", {
		"WFInput": "@Selection",
		"WFSearchQuery": "{@Selection}"
	})
	getPhoneNumbers()
	@Phone
	setClipboard(@Phone)
	menu  {
	item "Call Now? {@Phone}":
		call(@Phone)
	item :
		output()
	}
item "Find Website":
	getLocationDetail(@Selection, "Name")
	searchWeb("")
item "Get Weather":
	const WeatherConditions = getWeatherForecast()
	for _ in WeatherConditions {
	}
	joinText(RepeatResults, "
")
	const Text5 = "\n<html lang=\\"en\\">\n<head>\n    <meta charset=\\"UTF-8\\">\n    <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0, user-scalable=no\\">\n    <title>Weather</title>\n\n<style> \n\nbody\n{\nmargin: 10px;\npadding: 0;\ncolor: #333;\nbackground-color: #eee;\nfont: 1em/1.2 \\"Helvetica Neue\\", Helvetica, Arial, Geneva, sans-serif;\n}\n\nh1,h2,h3,h4,h5,h6\n{\nmargin: 0 0 .5em;\nfont-weight: 500;\nline-height: 1.1;\nmargin-bottom: 20px;\n}\n\nh1 { font-size: 2.25em; } /* 36px */\nh2 { font-size: 1.75em; } /* 28px */\nh3 { font-size: 1.375em; } /* 22px */\nh4 { font-size: 1.125em; } /* 18px */\nh5 { font-size: 1em; } /* 16px */\nh6 { font-size: .875em; } /* 14px */\n\np\n{\nmargin: 0 0 1.5em;\nline-height: 1.5;\n}\n\nblockquote\n{\npadding: 1em 2em;\nmargin: 0 0 2em;\nborder-left: 5px solid #eee;\n}\n\nhr\n{\nheight: 0;\nmargin-top: 1em;\nmargin-bottom: 2em;\nborder: 0;\nborder-top: 1px solid #ddd;\n}\n\ntable\n{\nbackground-color: transparent;\nborder-spacing: 0;\nborder-collapse: collapse;\nborder-top: 1px solid #ddd;\nwidth: 100%;\nmax-width: 100%;\nmin-width: 100%;\nmargin-bottom: 30px;\n}\n\nth, td\n{\npadding: .5em 1em;\nvertical-align: middle;\ntext-align: middle;\nborder-bottom: 1px solid #ddd;\n}\n\nth:first-child, td:first-child {\ntext-align: middle;\n}\na:link { color: royalblue; }\na:visited { color: purple; }\na:focus { color: black; }\na:hover { color: green; }\na:active { color: red; }\n\n.list-unstyled\n{\npadding-left: 0;\nlist-style: none;\n}\n\n.list-inline\n{\npadding-left: 0;\nmargin-left: -5px;\nlist-style: none;\n}\n\n.list-inline > li\n{\ndisplay: inline-block;\npadding-right: 5px;\npadding-left: 5px;\n}\n\n.icon { \n  width: 24px;\n  height: 24px; \n  display: inline-block;\n}\n</style>\n</head>\n<body>\n    <section>\n        <h1></h1>\n        <div class=\\"sectionbody\\"><body>\n            \n{}\n\n<p>\n\n\n    \n</p><p>\n\n</body>\n</html>"
	const RichTextFromHTML = getRichTextFromHTML(Text5)
	quicklook(RichTextFromHTML)
item "Copy Address":
	// TODO: Get Variable not supported: Assign variable here to '@Selection'.
	setClipboard(@Selection)
item "Stop":
	output(@Selection)
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by theslug

See All

You Might Also Like

See All
Advertisement