• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: On the difficulties of "/"" in Applescript with example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On the difficulties of "/"" in Applescript with example


  • Subject: Re: On the difficulties of "/"" in Applescript with example
  • From: "koenig.yvan" <email@hidden>
  • Date: Fri, 18 Oct 2013 09:27:53 +0200

Tested with that :

set fileWithQuotesInName to choose file

set fileWithQuotesInName to fileWithQuotesInName as text
log fileWithQuotesInName


tell application "Finder"
fileWithQuotesInName as alias
end tell

set fileWithQuotesInName to fileWithQuotesInName as text

tell application "Finder"
file fileWithQuotesInName
end tell


Got :


tell application "AppleScript Editor"
choose file
--> alias "Macintosh HD:Users:yvankoenig:Desktop:index \"Archives\" Users copie 2.txt"
end tell
(*Macintosh HD:Users:yvankoenig:Desktop:index "Archives" Users copie 2.txt*)
tell application "Finder"
get file "Macintosh HD:Users:yvankoenig:Desktop:index \"Archives\" Users copie 2.txt"
--> document file "index \"Archives\" Users copie 2.txt" of folder "Desktop" of folder "yvankoenig" of folder "Users" of startup disk
end tell

Résultat :

document file "index \"Archives\" Users copie 2.txt" of folder "Desktop" of folder "yvankoenig" of folder "Users" of startup disk of application "Finder"


Yvan KOENIG (VALLAURIS, France) vendredi 18 octobre 2013 09:27:46


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >On the difficulties of "/"" in Applescript with example (From: Walter Bushell <email@hidden>)
 >Re: On the difficulties of "/"" in Applescript with example (From: "Manoah F. Adams" <email@hidden>)
 >Re: On the difficulties of "/"" in Applescript with example (From: Shane Stanley <email@hidden>)
 >Re: On the difficulties of "/"" in Applescript with example (From: "Manoah F. Adams" <email@hidden>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 10, Issue 357
  • Next by Date: Re: On the difficulties of "/"" in Applescript with example
  • Previous by thread: Re: On the difficulties of "/"" in Applescript with example
  • Next by thread: ASEditor Drag&Drop
  • Index(es):
    • Date
    • Thread