mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Updated the applescript documentation for te new framework, and replaced the Eudora example with one that uses Disk Copy (which everyone running MacOS 8 or
higher should have).
This commit is contained in:
		
							parent
							
								
									e743c6e27e
								
							
						
					
					
						commit
						c15ab036df
					
				
					 9 changed files with 1250 additions and 961 deletions
				
			
		
							
								
								
									
										15
									
								
								Mac/Demo/applescript/makedisk.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								Mac/Demo/applescript/makedisk.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| import Disk_Copy | ||||
| import macfs | ||||
| import sys | ||||
| 
 | ||||
| talker = Disk_Copy.Disk_Copy(start=1) | ||||
| talker.activate() | ||||
| filespec = macfs.FSSpec('my disk image.img') | ||||
| try: | ||||
| 	objref = talker.create('my disk image', saving_as=filespec, leave_image_mounted=1) | ||||
| except Disk_Copy.Error, arg: | ||||
| 	print "ERROR: my disk image:", arg | ||||
| else: | ||||
| 	print 'objref=', objref | ||||
| print 'Type return to exit-' | ||||
| sys.stdin.readline() | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen