Re: On the difficulties of "/"" in Applescript with example
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