切換地圖
Accepts
URLs and Map Links
TEXT
Split
Shortcut Input
by
New Lines
Split Text
SCRIPTING
Get
Last Item
from
分開文字
Item from List
WEB
Expanded URL
VARIABLES
TEXT
url
Text
SCRIPTING
If
文字
contains
google.com
TEXT
Text
VARIABLES
Set variable
isCoordinates
to
文字
URL
Component of URL
SCRIPTING
Dictionary Value
VARIABLES
Set variable
location
to
辭典值
TEXT
Split
辭典值
by
Custom
,
Split Text
SCRIPTING
Count
SCRIPTING
If
計數
is
2
SCRIPTING
Get
Item At Index
1
from
分開文字
Item from List
TEXT
Matches
SCRIPTING
If
符合項目
has any value
SCRIPTING
Get
Item At Index
2
from
分開文字
Item from List
TEXT
Matches
SCRIPTING
If
符合項目
has any value
TEXT
Text
VARIABLES
Set variable
isCoordinates
to
文字
If Result
If Result
If Result
SCRIPTING
If
isCoordinates
is
false
TEXT
Text
VARIABLES
Set variable
twAddr
to
文字
LIST
基隆
台北
新北
桃園
新竹
苗栗
台中
彰化
南投
雲林
嘉義
台南
高雄
屏東
台東
花蓮
宜蘭
澎湖
金門
連江
List
TEXT
location
Text
SCRIPTING
Repeat with each item in
列表
Repeat Results
SCRIPTING
If
twAddr
is
false
TEXT
Repeat Item
Text
SCRIPTING
VARIABLES
Set variable
twAddr
to
文字
If Result
If Result
Repeat Results
TEXT
twAddr
Text
SCRIPTING
If
文字
is not
false
MAPS
Get addresses from
location
Addresses
DOCUMENTS
Replace
\n
with
in
地址
Updated Text
SCRIPTING
URL Encoded Text
TEXT
https://www.google.com/maps?q=
URL編碼文字
Text
VARIABLES
Set variable
url
to
文字
If Result
If Result
MAPS
Show
url
in Maps
URL
Component of URL
SCRIPTING
Get
Value
for
address
in
URL組件
Dictionary Value
VARIABLES
Set variable
location
to
辭典值
SCRIPTING
If
location
does not have any value
SCRIPTING
Get
Value
for
ll
in
URL組件
Dictionary Value
VARIABLES
Add
辭典值
to
location
TEXT
location
Text
MAPS
Show
文字
in Maps
TEXT
Match
^[\d]+台灣
in
location
Matches
SCRIPTING
If
符合項目
has any value
DOCUMENTS
Replace
^[\d]+
with
World
in
location
Updated Text
VARIABLES
Set variable
location
to
已更新的文字
If Result
SCRIPTING
Dictionary Value
Text
SCRIPTING
URL
Encode
文字
URL Encoded Text
TEXT
http://maps.google.com/?q=
URL編碼文字
Text
SAFARI
If Result
If Result
Showcuts