• 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: problem with POSIX path of …
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with POSIX path of …


  • Subject: Re: problem with POSIX path of …
  • From: Mitchell L Model <email@hidden>
  • Date: Tue, 13 Sep 2016 13:44:47 -0400

I don't understand why the behavior at Point 5 is different rom the behavior at Point 1. (That is, why at Point 5 your message says it is not surprising to get an error on accessing the POSIX path.)

On Sep 13, 2016, at 10:33 AM, Yvan KOENIG <email@hidden> wrote:

POSIX path of (o's tempFolder) --> "/Users/yvankoenig/Desktop/transfert_trefsnart/"

tell application "TextEdit"
try
log "Point 1"
POSIX path of (o's tempFolder)
on error errMsg number errNbr
log "error #" & errNbr & ", " & errMsg
log "Point 2"
end try
try
log "Point 3"
tell me to get (POSIX path of (o's tempFolder))
on error errMsg number errNbr
log "error #" & errNbr & ", " & errMsg
log "Point 4"
end try
end tell

tell application "System Events"
try
log "Point 5"
POSIX path of (o's tempFolder)
on error errMsg number errNbr
log "As I am in a tell application block I'm not really surprised to get :" & linefeed & "error #" & errNbr & ", " & errMsg
log "Point 6"
end try
try
log "Point 7"
tell me to get (POSIX path of (o's tempFolder))
on error errMsg number errNbr
log "But here, as I use the « tell me » tip, I'm REALLY bored to get :" & linefeed & "error #" & errNbr & ", " & errMsg
log "point 8"
end try
end tell


 _______________________________________________
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: 
 >problem with POSIX path of … (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: problem with POSIX path of …
  • Next by Date: Re: problem with POSIX path of …
  • Previous by thread: problem with POSIX path of …
  • Next by thread: Re: problem with POSIX path of …
  • Index(es):
    • Date
    • Thread