• 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
System Events Bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

System Events Bug


  • Subject: System Events Bug
  • From: John Delacour <email@hidden>
  • Date: Thu, 10 Apr 2003 00:04:57 +0100
  • Mac-eudora-version: 6.0a14

I'm been driven mad by this for two hours and finally discovered what looks like me to be a frightful bug.

This works:

set f to alias folder_path
--> alias "dx:Users:jd:live_folder2:"
set s to alias script_path
--> alias "dx:Users:jd:Library:Scripts:Folder Action
tell app "System Events"
Scripts:live_folder.scpt"
return {f, s}
set folder actions enabled to true
attach action to f using s
end



But the routine below doesn't. In other words alias "x" is not the same as alias "x" of application "System Events" !!!



tell app "System Events"
try
set f to alias folder_path
set s to alias script_path
set folder actions enabled to true
attach action to f using s
on error e
return {e, return, f, s}
end
end
--> {"NSReceiversCantHandleCommandScriptError", "
", alias "dx:Users:jd:live_folder2" of application "System Events", alias "dx:Users:jd:Library:Scripts:Folder Action Scripts:live_folder.scpt" of application "System Events"}
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: System Events Bug
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: mac script size revisited
  • Next by Date: Re: can't get it to work
  • Previous by thread: Re: mac script size revisited
  • Next by thread: Re: System Events Bug
  • Index(es):
    • Date
    • Thread