• 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: AppleScript Studio & File Paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Studio & File Paths


  • Subject: Re: AppleScript Studio & File Paths
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 14 May 2008 15:57:36 -0400

Or that.  I wasn't clear on what exactly the files were being hidden
from, so I took the requirement at face value....



On 5/14/08, Christopher Nebel <email@hidden> wrote:
>
> On May 12, 2008, at 7:58 PM, Mark J. Reed wrote:
>
>> On Mon, May 12, 2008 at 10:55 PM, Mark J. Reed <email@hidden>
>> wrote:
>>> set myFile to choose file
>>> set newName to "." & name of (get info for myFile)
>>> tell application "System Events" to set name of myFile to newName
>>
>> Or just do it all with System Events, no need for get info:
>>
>> set myFile to choose file
>> tell application "System Events" to set name of myFile to "." & name
>> of myFile
>
> Or, since the point was to hide the file, use the file meta-data
> that's designed to do that:
>
> 	set myFile to choose file
> 	tell application "System Events" to set visible of myFile to false
>
> POSIX tools like ls(1) don't respect the "visible" bit, but file
> browsers do.
>
>
> --Chris Nebel
> AppleScript Engineering
>
>  _______________________________________________
> 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
>

--
Sent from Gmail for mobile | mobile.google.com

Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >AppleScript Studio & File Paths (From: Connor DiPietro <email@hidden>)
 >Re: AppleScript Studio & File Paths (From: "Mark J. Reed" <email@hidden>)
 >Re: AppleScript Studio & File Paths (From: "Mark J. Reed" <email@hidden>)
 >Re: AppleScript Studio & File Paths (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Another Newbie on XCOdde - applescript
  • Next by Date: Re: Scripting Apple Mail to "Go On/Offline
  • Previous by thread: Re: AppleScript Studio & File Paths
  • Next by thread: Circle-Slash
  • Index(es):
    • Date
    • Thread