• 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
Strange Comment Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange Comment Problem


  • Subject: Strange Comment Problem
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 20 Sep 2009 18:05:37 -0500

I have encountered a very strange problem (in 10.6.1), which, after some hours of searching, I tracked down to this line of code ...

set linkFile to make new alias file at trashPath to imageFileAlias with properties {name:linkName}

The problem is that the alias file created by this line should have NO comment, but had a comment that it could not possibly have. So, I changed the code to ...

set linkFile to make new alias file at trashPath to imageFileAlias with properties {name:linkName, comment:"This_is_a_test"}

just to see what would happen. What happened was a new alias file whose comment is "This_is_a_test", which is what I expected. So I reverted to the original ...

set linkFile to make new alias file at trashPath to imageFileAlias with properties {name:linkName}

and tried again. The comment of the alias file should now be "", but NO!, it's now "This_is_a_test".

Something isn't right here. Am I really required to write ...

 ... with properties {name:linkName, comment:""}

if I want an empty comment? Where's the elephant that's not forgetting?

 _______________________________________________
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

  • Follow-Ups:
    • Re: Strange Comment Problem
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: text manipulation
  • Next by Date: do shell script "command not found"
  • Previous by thread: Re: now Leopard and (old) AppleScript applications
  • Next by thread: Re: Strange Comment Problem
  • Index(es):
    • Date
    • Thread