Advertisement
Guest User

Untitled

a guest
Feb 7th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Копируем делаем все красиво ывдлаоывдлаодыва
  2.  
  3.  
  4. on searchReplace(theText, SearchString, ReplaceString)
  5.  set OldDelims to AppleScript's text item delimiters
  6.  set AppleScript's text item delimiters to SearchString
  7.  set newText to every text item of theText
  8.  set AppleScript's text item delimiters to ReplaceString
  9.  set newText to newText as text
  10.  set AppleScript's text item delimiters to OldDelims
  11.  return newText
  12. end searchReplace
  13.  
  14. on run {input, parameters}
  15.  set myClip to the input
  16.  set mytext to searchReplace(myClip, "<", "")
  17.  set mytext to searchReplace(mytext, ">.", "")
  18.  set mytext to searchReplace(mytext, ">", "")
  19.  set mytext to searchReplace(mytext, "smb://serverkb.strelka.com/Projects", "")
  20.  set findIt to "/"
  21.  set replaceIt to "\\"
  22.  set mylocation to "P:" & searchReplace(mytext, findIt, replaceIt)
  23.  return mylocation
  24. end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement