• 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
Why do I get different results for this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why do I get different results for this?


  • Subject: Why do I get different results for this?
  • From: "John C. Welch" <email@hidden>
  • Date: Thu, 23 Apr 2009 21:29:01 -0400
  • Resent-date: Fri, 24 Apr 2009 05:55:23 -0400
  • Resent-from: "John C. Welch" <email@hidden>
  • Resent-message-id: <C6168E1D.BFF4E%email@hidden>
  • Resent-to: AppleScript List <email@hidden>
  • Thread-topic: Why do I get different results for this?

Title: Why do I get different results for this?
So in trying to help a friend out, this is stumping me:

set
myTemps to the path to temporary items folder from the user domain as string
set
lastVolumeListFile to (POSIX path of (myTemps & "com.shirtpocket.lastVolumeList")) as string
tell
application "Finder"
   set ourTest to exists POSIX file lastVolumeListFile
   set ourSecondTest to exists POSIX file "/Users/jwelch/Library/Caches/TemporaryItems/com.shirtpocket.lastVolumeList"
end
tell

Now, from what I can tell, both ourTest and ourSecondTest should return the same thing, either true or false. Yet in run after run, ourTest is false, ourSecondTest is true. Beats me why, but I’d love to know.

--
"We aren't going to try to train you,we're going to try to kill you."
- Soldier I, SAS
 _______________________________________________
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

  • Prev by Date: Clearing history for different applications
  • Next by Date: Re: Why do I get different results for this?
  • Previous by thread: Re: Confounded by Folder Action Script (10.5.6)
  • Next by thread: Re: Why do I get different results for this?
  • Index(es):
    • Date
    • Thread