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

Re: Why do I get different results for this?


  • Subject: Re: Why do I get different results for this?
  • From: Jon Arntzen <email@hidden>
  • Date: Fri, 24 Apr 2009 11:53:44 +0100

It looks like set variable to exists POSIX file only accepts strings as input. Seems to work if you do set ourTest to exists POSIX file lastVolumeListFile as string

On 24 Apr 2009, at 02:29, John C. Welch wrote:

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
<ATT00002.txt>

 _______________________________________________
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: Why do I get different results for this?
  • Next by Date: Re: Why do I get different results for this?
  • Previous by thread: Why do I get different results for this?
  • Next by thread: Re: Why do I get different results for this?
  • Index(es):
    • Date
    • Thread