• 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: Folder Actions and BBEdit problem this time without HTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Actions and BBEdit problem this time without HTML


  • Subject: Re: Folder Actions and BBEdit problem this time without HTML
  • From: Emmanuel <email@hidden>
  • Date: Sat, 10 Jan 2004 00:47:53 +0100

At 4:31 PM -0500 09/01/04, Dan Doughtie wrote:
>I've got a Folder action on a G5 on 10.3.2 that is set to trigger and open a
>text file when it arrives, then do some massive copy replacements with grep
>searches and when finishes writes the file out to a server that inserts it
>into an editorial system.

Regarding the task that you are programming, Smile and BBEdit are rather similar I suspect - expect Smile is its own script editor. In Smile you would use FileToWindow(this_item) to do what you want.

Though, do you really need to open the files? It might prove more efficient to load the contents of the files into a variable (using "read", in StandardAdditions.osax), then perform the grep with the Satimage osax and save the contents of the variable into a new file (with "open for access with write permission" and "write", in StandardAdditions.osax).

Emmanuel
_______________________________________________
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.

References: 
 >Folder Actions and BBEdit problem this time without HTML (From: Dan Doughtie <email@hidden>)

  • Prev by Date: Re: Halt script in progress...
  • Next by Date: Re: iTunes Playlist Selection
  • Previous by thread: Folder Actions and BBEdit problem this time without HTML
  • Next by thread: Scripting QuarkXPress 5 in Classic mode
  • Index(es):
    • Date
    • Thread