Re: Why do I get different results for this?
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